From: Joel VanderWerf Date: 2004-11-14T16:20:18+09:00 Subject: Re: [ANN] Copland to Needle article on RubyGarden (LONG) Jamis Buck wrote: > Joel VanderWerf wrote: > >> In this case there are just a few kinds, but what if the printer >> arguments have more possible variation? What if, in addition to kind, >> there is an integer argument (a port number, say)? > > > Well... you'd just use an array for the hash key, right? Or am I > misunderstanding your question? Your suggestion, if I understood correctly, was to enforce a multiton service model of printers by defining a fixed number of singleton services, one for each printer. Now suppose specifying a printer requires not just a kind, but a kind and a port number. In that case, there are a lot of singletons... That seems to be a good reason to find a way to express the multiton model explicitly.