This is the mail archive of the guile@cygnus.com mailing list for the guile project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
humeniuw@cadvision.com writes: > I would like to have the following primitive added to > variables: > > (variable-bind-pair <pair>) -----> #<variable> > > The new variable would directly reference the pair > for use within eval and such. > > e.g. > > (define x '(x . 3)) > > (define xvar (variable-bind-pair (cons 'x 3)) > #<variable name: x binding: 3> > > (variable-set! xvar 10) > > x > (x . 10) > In my opinion, it's a bad idea to expose the fact that Guile implements variables as pairs to the user level. I suspect this representation might change for certain classes of variables at least when it comes time to tune Guile for speed. - Maciej