[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Dylan Wiki FAQ question
- To: address@hidden
- Subject: Dylan Wiki FAQ question
- From: Doug Hockin <address@hidden>
- Date: Tue, 22 Oct 2002 13:00:02 -0400
- Organization: OWDS Inc.
- Sender: "Gregory T. Sullivan" <address@hidden>
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020721
- Xref: traf.lcs.mit.edu comp.lang.dylan:14397
In the Dylan Wiki FAQ page:
http://monday.sourceforge.net/wiki/index.php/DylanFrequentlyAskedQuestions
is the following example of a "abstract instantiable class":
define open abstract class <abstract-foo> (<object>)
// slots, maybe
end class;
define class <concrete-foo> (<abstract-foo>)
// slots
end class;
define sealed method make(class == <abstract-foo>,
#rest key-value-pairs,
#key, #all-keys)
=> (instance :: <abstract-foo>);
apply(make, <concrete-foo>, key-value-pairs);
end;
How does the first argument to make (class == <abstract-foo>) work?
Isn't it supposed to be a class? What am I missing?
-- Doug