[plt-scheme] getting the constructor from a struct-type
On Tue, 2006-02-14 at 17:02 -0600, Jacob Matthews wrote:
> Sam Tobin-Hochstadt wrote:
>
> >I would like to perform functional update on arbitrary structures
> >(modulo inspectors) and thus I'd like to be able to construct instances
> >of a structure given the structure-type.
> >
> You know about copy-struct from (lib "struct.ss"), right?
Sadly, this requires static knowledge of what structure is being
updated, whereas I want to operate on arbitrary structures (that I have
no knowledge of statically).
sam th