[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: slib with guile 1.9.7
From: |
Aubrey Jaffer |
Subject: |
Re: slib with guile 1.9.7 |
Date: |
Wed, 03 Feb 2010 11:30:47 -0500 (EST) |
| From: address@hidden (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
Re: slib with guile 1.9.7, Aubrey Jaffer, 2010/02/11