[plt-scheme] boxes?

From: Stephen De Gabrielle (spdegabrielle at gmail.com)
Date: Tue Jan 23 18:51:54 EST 2007

Hi,

I'm trying to work out boxes;

the MzScheme manual calls them 'records that have a single field'  [3.11]

I think I have a handle on how to use them - at least my attempts with
the 'get-position' method seem to have worked.

I'm just not sure what the advantage is?

Any clues appreciated.

Cheers,

Stephen De Gabrielle


--
(define start (box 2))
(define end (box 10))
(send text-editor get-position start end)
--
> (send text-editor get-position start end)
> start
#&76
> end
#&86
> (unbox start)
76
>


-- 
--


Posted on the users mailing list.