[plt-scheme] creating an instance of a structure

From: MJ Ray (markj at cloaked.freeserve.co.uk)
Date: Fri Jul 12 14:57:04 EDT 2002

Rohan Nicholls <Rohan.Nicholls at informaat.nl> wrote:
> The example in the MzScheme manual is very trivial for brevity, so the =
> initialization does not need to name the elements, and initializes them =
> all.

Are you sure that it isn't that it can't name the elements?  I'm not sure,
but that's my reading of it.  Hopefully someone will correct me if not.

Also, the accessors are tree-height et al, and mutators set-tree-height! etc
Note that the defstruct in TYS in not the default MzScheme one.  Not sure
why they're different... PLT?

Hope that helps,

MJR




Posted on the users mailing list.