July 22, 2010
1:43 p.m.
sounds cool :)
VAST has an #asClass method on Symbol that does more or less this:
Symbol >> #asClass ^ Smalltalk at: self
What about this?
^Smalltalk at: self ifAbsent: nil
^Smalltalk globals at: self ifAbsent: nil
So one could also write:
#MyClass asClass ifNotNil: [ :myClass | ... ]