[Top][All Lists]

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

Re: Misplaced syntactic keyword defvar

From: Dirk Herrmann
Subject: Re: Misplaced syntactic keyword defvar
Date: Sun, 30 May 2004 09:39:53 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040220

Bill Schottstaedt wrote:

Now (in Saturday's CVS Guile) I get this:

guile> (define defvar #f)
guile> (set! defvar define)
guile> (set! defvar define)

In standard input:
   4: 0* (set! #<primitive-builtin-macro! define> define)

standard input:4:1: In expression (set! #<primitive-builtin-macro! define> define):
standard input:4:1: Unbound variable: #<primitive-builtin-macro! define>
ABORT: (unbound-variable)

I have submitted a hopefully working fix this time. But, just as a reminder:

 (define defvar #f)
 (set! defvar define)

is not allowed according to R5RS. Neither is

 (set! define #f)

In R5RS you don't find the concept that define and other syntactic keywords
have a location to which you can assign. The same holds for the concept that
for every syntactic keyword there is a corresponding macro object. Both of
these are guile extensions, but their use should probably be avoided.

Best regards

reply via email to

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