From: Marius Vollmer <mvo@zagadka.ping.de>
Cc: guile-devel@gnu.org
Subject: Re: illegal uses of define in guile
Date: 18 Oct 2002 23:55:41 +0200 [thread overview]
Message-ID: <87r8en1kf6.fsf@zagadka.ping.de> (raw)
In-Reply-To: <Pine.GSO.4.05.10210141858170.28259-100000@sallust.ida.ing.tu-bs.de>
Dirk Herrmann <dirk@sallust.ida.ing.tu-bs.de> 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
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
next prev parent reply other threads:[~2002-10-18 21:55 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-14 17:17 illegal uses of define in guile Dirk Herrmann
2002-10-14 17:49 ` Bruce Korb
2002-10-14 19:42 ` Neil Jerram
2002-10-15 0:18 ` Bruce Korb
2002-10-15 6:15 ` Dirk Herrmann
2002-10-15 10:49 ` tomas
2002-10-15 13:33 ` rm
2002-10-15 13:58 ` Bruce Korb
2002-10-15 12:45 ` rm
2002-10-18 21:55 ` Marius Vollmer [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-10-19 15:22 Dirk Herrmann
2002-10-19 15:44 ` Marius Vollmer
2002-10-21 10:04 ` tomas
2002-11-03 16:28 ` Marius Vollmer
2002-11-04 10:21 ` tomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r8en1kf6.fsf@zagadka.ping.de \
--to=mvo@zagadka.ping.de \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).