[plt-scheme] getting the constructor from a struct-type

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Tue Feb 14 18:17:23 EST 2006

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

Posted on the users mailing list.