On Mon, Feb 1, 2010 at 01:22, lanas lanas@securenet.net wrote:
CarAssembler class>>using: aCarFactory ^self new factory: aCarFactory
I think this a pattern for instance creation.
The point is that you can clearly see what it takes to create a instance of CarAssembler, namely, a CarFactory.
Notice that: self new "will create the instance" factory: a CarFactory "is storing aCarFactory in the instance, not the class"