Nov. 7, 2011
2:44 p.m.
On 7 November 2011 15:33, Henrik Sperre Johansen <henrik.s.johansen@veloxit.no> wrote:
On 07.11.2011 15:29, Markus Rother wrote:
The issue I could not solve on my own is this: I would like to instantiate from symbols. My use-case is a collection of class names which I want to ask to return one instance each.
Such that: #Foo asClass new -> a Foo whereas asClass is the method I am looking for.
(self environment at: #Foo) new -> a Foo
or (Smalltalk globals classNamed: #Foo) just to make sure that you only interested in getting classes, not funny globals.
Cheers, Henry
-- Best regards, Igor Stasenko.