guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: case syntax and symbols


From: Marius Vollmer
Subject: Re: case syntax and symbols
Date: Sun, 22 May 2005 20:41:39 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Neil Jerram <address@hidden> writes:

>> Also (and don't try this at home kids):
>>   (define 'x (* x x))
>>   '2
>>   => 4
>
> And presumably (or in my view) this is all fine, except for the last
> example, where Guile should signal an error or at least give a
> warning. Right?

Hmm.  There are two things here that might want a warning: redefining
something that was a macro as a variable; and shadowing a core
definition.

We we already warn when importing something that shadows a core
definition, so we could as well warn when redefining one.

Opinions?

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

[Prev in Thread] Current Thread [Next in Thread]