[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dylan Wiki FAQ question
- To: address@hidden
- Subject: Re: Dylan Wiki FAQ question
- From: Andreas Bogk <address@hidden>
- Date: Tue, 22 Oct 2002 14:00:02 -0400
- Cancel-key: sha1:dO+jgXpgheysgG37UArmviCr7bk=
- Cancel-lock: sha1:qVTB3FqAD/ptvlxnxwkrViLl5zA=
- Organization: There Is No Cabal.
- References: <ap3va9$e7m$1@news.chatlink.com>
- Sender: "Gregory T. Sullivan" <address@hidden>
- Supersedes: <878z0qtlhb.fsf@meo-dipt.andreas.org>
- User-agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter,i386-debian-linux)
- Xref: traf.lcs.mit.edu comp.lang.dylan:14400
Doug Hockin <dough@ipeg.com> writes:
> How does the first argument to make (class == <abstract-foo>) work?
> Isn't it supposed to be a class? What am I missing?
The notation
foo == <bar>
is equivalent to
foo :: singleton(<bar>) .
This is *not* the same
foo :: <bar>
The latter means "an object of type <bar>". The two former mean "the
specific instance <bar>", which is an instance of the class <class>.
One could say that you pass the name of the class to make, not an
instance of that class.
Andreas
--
"In my eyes it is never a crime to steal knowledge. It is a good
theft. The pirate of knowledge is a good pirate."
(Michel Serres)