From: Aubrey Jaffer <agj@alum.mit.edu>
To: ludo@gnu.org (Ludovic Courtès)
Cc: bug-guile@gnu.org
Subject: Re: slib with guile 1.9.7
Date: Wed, 03 Feb 2010 11:30:47 -0500 (EST) [thread overview]
Message-ID: <20100203163047.EA83351D86D@voluntocracy.org> (raw)
In-Reply-To: <87tytzp9jc.fsf@gnu.org> (ludo@gnu.org)
| From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=)
| Date: Tue, 02 Feb 2010 23:17:27 +0100
|
| ...
|
| scheme@(guile-user)> (if (not (defined? 'foo))(define foo 2))
| Throw to key `syntax-error':
| ERROR: In procedure sc-expand:
| ERROR: definition in expression context in subform `foo' of `2'
|
| I wonder whether we should hack ‘if’ to support this idiom, for
| backward compatibility, since it used to be relatively common.
|
| At any rate, the following should work both with 1.8 and 2.0 (and
| probably older versions):
|
| (if (not (defined? 'foo))
| (module-define! (current-module) 'foo 2))
I have unconditionalized the definitions for browse-url,
vector->array, array->vector, and random:chunk in slib/guile.init.
The development version is updated:
http://groups.csail.mit.edu/mac/ftpdir/users/jaffer/slib.zip
Also, the CVS repository is updated:
https://savannah.gnu.org/cvs/?group=slib
next prev parent reply other threads:[~2010-02-03 16:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20100128165908.GD2540@laura.suse.cz>
[not found] ` <20100128183620.4689351D89E@voluntocracy.org>
[not found] ` <87636lsysm.fsf@gnu.org>
[not found] ` <20100129015934.1E9DE51D89E@voluntocracy.org>
[not found] ` <20100201163750.GB1290@laura.suse.cz>
[not found] ` <20100202183126.1544C51D86D@voluntocracy.org>
2010-02-02 22:17 ` slib with guile 1.9.7 Ludovic Courtès
2010-02-03 16:30 ` Aubrey Jaffer [this message]
2010-02-11 21:58 ` Aubrey Jaffer
2010-02-12 9:14 ` Ludovic Courtès
2010-02-13 19:38 ` Aubrey Jaffer
2010-02-14 10:44 ` Andy Wingo
2010-02-15 2:00 ` Aubrey Jaffer
2010-02-11 22:01 ` Aubrey Jaffer
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=20100203163047.EA83351D86D@voluntocracy.org \
--to=agj@alum.mit.edu \
--cc=bug-guile@gnu.org \
--cc=ludo@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).