[plt-dev] struct-copy for objects

From: Henk Boom (henk at henk.ca)
Date: Mon Mar 16 17:29:39 EDT 2009

2009/3/16 Jay McCarthy <jay.mccarthy at gmail.com>:
> Good point. I guess I'll deal for now.
>
> Two ideas:
>
> A syntax form that works with an interface (updateable<%>) that makes
> the class deal with this stuff. (A related note syntax transformers in
> the class system's interfaces might work analogous to the unit
> system's)
>
> A syntax form that is only legal inside the the class, so it can know
> what all the fields are. (Although this would probably break for a
> subclass's private fields.)

I tried something a little over a year ago which introduced a new
(data ...) form for data which should be copied from object to object.

http://list.cs.brown.edu/pipermail/plt-scheme/2007-October/020851.html

    Henk


Posted on the dev mailing list.