[plt-scheme] Using constructors
At Sat, 19 Oct 2002 22:18:42 +0100, "Paulo Jorge O. C. Matos" wrote:
> How can I make a constructor for a given class?
> I mean, I need to make a method/function that will show up a GUI
> (depends on object to create), receives input from user and returns a
> new object.
>
> I could use a normal function but then I would not be able to use
> polymorphism.
I don't quite understand what you're looking for. Can you provide an
example? Or maybe you can clarify why
(lambda (arg ...) (instantiate some-class% (arg ...)))
isn't what you need.
Matthew