Nov. 7, 2011
8:12 p.m.
2011/11/7 Nick Ager <nick.ager@gmail.com>:
Hi,
Pharo is working towards less dependency on globals like these, so the new way would be like this: Â Â Â Â (self environment at: #String) new
(Where environment essentially does 'Smalltalk globals'),
In my image (Pharo 1.3) #environment is defined in Behavior so I need to call: (self class environment at: #String) new have I missed something... Nick
It depends where you evaluate the snippet... Try to evaluate self in workspace, you'll get nil, but ina browser, you'll get the selected class... Nicolas