[plt-scheme] Boxing in MzScheme

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Wed Oct 29 05:35:40 EST 2003

Khorev Sergey wrote:
>>From manual: "MzScheme provides boxes, which are records that have a single
> field."
> I wonder, why one-field record is such important so it has its own
> construction? :))

One strategy for compiling Scheme is to rewrite assignments into
mutation of boxes. This simplifies the remaining phases of the compiler,
which have one special case less to worry about.

If you already have implemented the box-data structure internally,
then why not make it public so the users can use it to?

Oh - btw - the boxing strategy makes the implementation of call/cc
easier.

-- 
Jens Axel Søgaard




Posted on the users mailing list.