On Thu, 22 Jul 2010, Philippe Marschall wrote:
Hi
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
So one could also write:
#MyClass asClass ifNotNil: [ :myClass | ... ]
Levente
This can be quite handy if you want to refer to a class that is not
there a compile time, eg. Metacello.
Think:
#ConfigurationOfSeaside30 asClass load
Cheers
Philippe
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project