[plt-scheme] struct copy with optional arguments

From: Jon Rafkind (workmin at ccs.neu.edu)
Date: Thu Apr 3 01:21:39 EDT 2008

Henk Boom wrote:
> On 03/04/2008, Jon Rafkind <workmin at ccs.neu.edu> wrote:
>> I implemented a short macro to generate a function that copies a struct and
>> optionally replaces some values with arguments to the function. I got tired
>> of manually extracting the values from a struct just to update 1 field so I
>> was guessing maybe other people were too.
> ...
>> I found the copy-struct module from David Van Horn which is pretty close,
>> but slightly more verbose( in usage ).
>> http://www.koders.com/scheme/fid839A35F3E45E769966841A339D968A6B09A03C27.aspx
> Isn't there also a copy-struct in struct.ss?
Oh so there is, and its that same source code anyway. Serves me right 
for not searching!

Posted on the users mailing list.