* Misplaced syntactic keyword defvar
@ 2004-05-19 16:07 Bill Schottstaedt
2004-05-22 7:19 ` Dirk Herrmann
0 siblings, 1 reply; 4+ messages in thread
From: Bill Schottstaedt @ 2004-05-19 16:07 UTC (permalink / raw)
In the current CVS Guile:
/home/bil/cl/ ../test/bin/guile
guile> (define defvar #f)
guile> (set! defvar define)
guile> (set! defvar define)
Backtrace:
In standard input:
3: 0* (set! defvar define)
standard input:3:1: In procedure memoization in expression (set! defvar define):
standard input:3:1: Misplaced syntactic keyword defvar.
ABORT: (syntax-error)
guile>
Even shorter, though I'm not sure this is legal:
guile> (set! define define)
Backtrace:
In standard input:
1: 0* (set! define define)
standard input:1:1: In procedure memoization in expression (set! define define):
standard input:1:1: Misplaced syntactic keyword define.
ABORT: (syntax-error)
(The first example is abstracted from a larger context where I'm using
the same code in both Scheme and Common Lisp).
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Misplaced syntactic keyword defvar
2004-05-19 16:07 Misplaced syntactic keyword defvar Bill Schottstaedt
@ 2004-05-22 7:19 ` Dirk Herrmann
2004-05-24 10:45 ` Bill Schottstaedt
0 siblings, 1 reply; 4+ messages in thread
From: Dirk Herrmann @ 2004-05-22 7:19 UTC (permalink / raw)
Cc: bug-guile
Bill Schottstaedt wrote:
> In the current CVS Guile:
>
> /home/bil/cl/ ../test/bin/guile guile> (define defvar #f) guile>
> (set! defvar define) guile> (set! defvar define)
>
> Backtrace: In standard input: 3: 0* (set! defvar define)
>
> standard input:3:1: In procedure memoization in expression (set!
> defvar define): standard input:3:1: Misplaced syntactic keyword
> defvar. ABORT: (syntax-error) guile>
Fixed. The problem had been introduced by me.
Best regards
Dirk
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Misplaced syntactic keyword defvar
2004-05-22 7:19 ` Dirk Herrmann
@ 2004-05-24 10:45 ` Bill Schottstaedt
2004-05-30 7:39 ` Dirk Herrmann
0 siblings, 1 reply; 4+ messages in thread
From: Bill Schottstaedt @ 2004-05-24 10:45 UTC (permalink / raw)
Cc: bug-guile
Now (in Saturday's CVS Guile) I get this:
guile> (define defvar #f)
guile> (set! defvar define)
guile> (set! defvar define)
Backtrace:
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)
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Misplaced syntactic keyword defvar
2004-05-24 10:45 ` Bill Schottstaedt
@ 2004-05-30 7:39 ` Dirk Herrmann
0 siblings, 0 replies; 4+ messages in thread
From: Dirk Herrmann @ 2004-05-30 7:39 UTC (permalink / raw)
Cc: bug-guile
Bill Schottstaedt wrote:
> Now (in Saturday's CVS Guile) I get this:
>
> guile> (define defvar #f)
> guile> (set! defvar define)
> guile> (set! defvar define)
>
> Backtrace:
> 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
Dirk
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-05-30 7:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-19 16:07 Misplaced syntactic keyword defvar Bill Schottstaedt
2004-05-22 7:19 ` Dirk Herrmann
2004-05-24 10:45 ` Bill Schottstaedt
2004-05-30 7:39 ` Dirk Herrmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).