David Kastrup <d...@gnu.org> writes:

> The module system documentation provides _no_ _clue_ _whatsoever_ about
> how something like
> (symbol-set! #f (string->symbol name) value)
> could be replaced.  In fact, the module system documentation provides
> _no_ _clue_ _whatsoever_ how to actually access module variables short
> of calling eval on little programs working with symbols.
>
> I don't want to call eval for the simple act of setting a symbol to a
> value.
>
> The funny thing is that symbol-fset! and symbol-pset! are documented.
> But nothing whatsoever that could set a symbol value itself on a symbol
> that has been generated.
>
> What's up with that?

Well, I disassembled enough to come up with
(module-define! (current-module) (string->symbol name) value)

It is not like there is _any_ documentation for this in the manual.

Is this somebody's idea of a joke?

-- 
David Kastrup


Reply via email to