[Prev][Next][Index][Thread]
Re: Dylan Features
In article <398ACAE5.45966287@lotus.com>,
Enter your Notes name here <firstname_lastname@lotus.com> wrote:
> I seem to remember that back in the old days, when Dylan had
> Scheme-style syntax, that you could add slots to individual instances.
> Can you do this in the current version of Dylan?
Yes, you can dispatch methods on singletons:
define method foo (x == 0)
"EEEEEK";
end;
define method main () => ()
let y = 0;
format-out("%=\n", y.foo);
end;
Sent via Deja.com http://www.deja.com/
Before you buy.
Follow-Ups:
References:
- Dylan Features
- From: Enter your Notes name here <firstname_lastname@lotus.com>