[gambit-list] set! of local var in compiled code behavior, box-var / var->box

Mikael mikael.rcv at gmail.com
Mon Nov 14 12:36:49 EST 2011


Dear Marc,

Noted that set! of local variables in compiled code returns a box object
with as slot, the variable slot of the mutated variable. While this is a
great feature, i'd really want to disable this as a bundled behavior in
set!, as I use set! for mutation solely, and this box object generation
thus takes resources unneccesarily. How is this box generation disabled?

It would be great to have this feature as a separate primitive instead,
like box-var or var->box or sth, that'd work for both in interpreted and
compiled code, and both for local and global vars. If there's anything like
this, please let me/the ml know.

Thanks! Mikael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20111114/baa6ea75/attachment.htm>


More information about the Gambit-list mailing list