[plt-scheme] Singleton pattern using class.ss
Hi Noel,
On Dec 12, 2007 4:57 PM, Noel Welsh <noelwelsh at gmail.com> wrote:
Thanks - thats excellent!
> > The 'Factory Pattern' is next for me. Any suggestions gratefully
> accepted.
>
> Wouldn't a function suffice in this case?
>
Yeah, I was having trouble working out why a factory was needed. I was
assuming I needed it because the class.ss system seems so similar to the
java object system. (at least to me)
Thanks,
Stephen
--
Stephen De Gabrielle
s.degabrielle at ucl.ac.uk
Telephone +44 (0)20 7679 5242 (x45242)
Mobile 079 851 890 45
http://www.uclic.ucl.ac.uk/annb/MaSI.html
University College London Interaction Centre
Remax House - 31/32 Alfred Place
London - WC1E 7DP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20071212/510879f4/attachment.html>