[Prev][Next][Index][Thread]
[FD] creating classes at runtime
-
To: info-dylan@ai.mit.edu
-
Subject: [FD] creating classes at runtime
-
From: dauclair@hotmail.com
-
Date: Tue, 9 May 2000 23:45:01 -0400 (EDT)
-
Organization: Deja.com - Before you buy.
-
Xref: traf.lcs.mit.edu comp.lang.dylan:11999
The DRM is a little vague on how to do this, but I'm looking to do
something like this:
// ---- code ----
define class <animal> (<object>) end; // predefined
// sometime later, the user wants to add a class
// (by, e.g., supplying characteristics thru DUIM)
define constant <mammal> = make(<class>, superclasses: <animal>);
// ---- end-code ----
The last line returns an error ... what'll get the expected results?
Sincerely,
Doug Auclair
Sent via Deja.com http://www.deja.com/
Before you buy.
Follow-Ups: