[Prev][Next][Index][Thread]

Re: simple method dispatch question



"Chris Double" <chris@double.co.nz> wrote in message
wkn1f7d63e.fsf@double.co.nz">news:wkn1f7d63e.fsf@double.co.nz...
>> Jason, you just solved a minor question I've had ever since I
>> started to experiment with Dylan: What use are singletons?

> Not much really since singletons are practically supported by the
> language. But here's an example of a 'singleton' class as per the GOF
> book as presented by Andy Armstrong a while ago:

I don't mean the GoF singleton here.  I mean the Dylan language construct
which was unfortunately named the same thing.  :-)

I was always wondering why I'd want to have an argument to a function with a
specific value instead of a specific type.  Now I see why.





Follow-Ups: References: