[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What's with `symbol-set!' is deprecated. Use the module system inste
From: |
Andy Wingo |
Subject: |
Re: What's with `symbol-set!' is deprecated. Use the module system instead. |
Date: |
Mon, 05 Dec 2011 15:54:59 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
Hello David,
On Mon 05 Dec 2011 09:11, David Kastrup <address@hidden> writes:
> David Kastrup <address@hidden> writes:
>
>>> (symbol-set! #f (string->symbol name) value)
>> (module-define! (current-module) (string->symbol name) value)
Indeed, the module system needs better documentation.
>> Is this somebody's idea of a joke?
It might be! I personally can't say though, as things have been this
way for longer than my time in Guile.
> Apparently. The C interface offers scm_define which works fine for this
> purpose.
Yes. Version 2.0.x has better-documented interfaces, here:
http://www.gnu.org/software/guile/manual/html_node/Accessing-Modules-from-C.html
The Scheme equivalents are not documented as well, however. Definitely
a bug, there.
Regards,
Andy
--
http://wingolog.org/