This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: more module system wishlist blathering
Michael Livshin <mlivshin@bigfoot.com> writes:
> > For example BinaryTree[Integer] or BinaryTree[Real] or Wheel[Number].
> > You take a (abstract) class, parameterize it with one or more other
> > classes and obtain "real" classes like IntegerBinaryTree, a 4 Wheels
> > class and so on.
>
> um. but you have the capability to do exactly that, since GOOPS
> classes are first class values.
>
> (define <binary-tree{integer}>
> (make-binary-tree-class 'integer)) ; or something.
Do you have a complete example?
Jost