[plt-scheme] getting the constructor from a struct-type
At Tue, 14 Feb 2006 18:17:23 -0500, Sam Tobin-Hochstadt wrote:
> 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).
If you can arrange to get control of the structure-type, why not also
arrange to get hold of the maker?
Robby