[gambit-list] Retroactively changing u8vector between movable and ___STILL would not be very feasible/clean, right?

Adam adam.mlmb at gmail.com
Thu Apr 13 11:24:27 EDT 2017


Hi Marc,

You frequently have u8vectors generated by various routines in Scheme and
that for that reason of course are movable, and, then you want to take it
through a function in the C world (such as, a hashing function provided by
some C library), and suddenly you know that you will need to ensure that
that object not will move around for a bit.

The same applies to some vectors and strings.

The ordinary way to do this is to generate a new empty ___STILL object and
then copy over all the content.

I guess this is for memory-technical reasons - ___STILL objects always have
their own allocation, whereas movable objects are swamped up in the memory
blocks, or?

So just wanted to check with you if live switching between movable and
___STILL could be feasible. I presume it's not.

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


More information about the Gambit-list mailing list