guile-devel
[Top][All Lists]
Advanced

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

Re: illegal uses of define in guile


From: Marius Vollmer
Subject: Re: illegal uses of define in guile
Date: 18 Oct 2002 23:55:41 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Dirk Herrmann <address@hidden> writes:

> Currently, guile allows the following:
>   (if (not (defined? '%load-verbosely))
>       (define %load-verbosely #f))
> as can be found in r4rs.scm.
> 
> This is in contrast to R5RS (maybe even already in contrast to R4RS,
> but I haven't checked that).  Allowing such placements of define will make
> it impossible to determine statically whether after evaluation of the
> form the corresponding identifier will be bound or not.  That is, we
> should disallow this behaviour.

I think we can continue to support it, when people really want us to.
The new.model.txt needs to be adapted a bit, but not much, I think.

This will affect the optimizations a compiler might make, of course,
and maybe we should warn people that such uses of 'define' are
questionable.  We can also disallow them in 'R5RS' mode, when we have
such a thing.

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




reply via email to

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