What's with `symbol-set!' is deprecated. Use the module system instead.

2011-12-04 Thread David Kastrup

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?

-- 
David Kastrup




Re: What's with `symbol-set!' is deprecated. Use the module system instead.

2011-12-04 Thread David Kastrup
David Kastrup  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




syntax-local-value

2011-12-04 Thread Stefan Israelsson Tampe
In looking at racket syntax-parse there seems to be some advanced macrology
that is not included in guile.

The light now is on the possibility to attach data to macros. I figure that
I could
reproduce this by using a weak hash-table but miss the functionality of

syntax-local-value

e.g.
http://docs.racket-lang.org/reference/stxtrans.html#%28def._%28%28quote._~23~25kernel%29._syntax-local-value%29%29

Basically the possibility to get the macro-object associated to a symbol in
an environment if I have understyand this.

So is there a guile feature that matches this at a reasonable level?

Regards
Stefan


G-Wrap 1.9.14 released

2011-12-04 Thread Andreas Rottmann
Hi!

I'm pleased to announce G-Wrap 1.9.14; as always, it can be downloaded
from .

This release adds support for the Guile 2.0.x branch, while staying
compatible with 1.8.x.

About G-Wrap:

  G-Wrap is a tool (and Guile library) for generating function wrappers
  for inter-language calls. It currently only supports generating Guile
  wrappers for C functions.

Changes since 1.9.13:

- Guile 2.0 is now supported.

- G-Wrap no longer ships SRFI 34 and SRFI 35 implementations, as
  these have been both provided by Guile since 1.8.3.

Regards, Rotty
-- 
Andreas Rottmann --