[Pharo-dev] Another thought about globals
craig at netjam.org
Sat Dec 14 14:38:29 EST 2013
> Class names are globals. A class is registered in a global namespace
> by its name. Names need to be looked up. How should it work in
> another way?
Get rid of globals. Make the root classes elements of the special
objects array (Object already is), and look up classes through that.
Make everything else that used to be a global (like Transcript) the
responsibility of some class, and use them by sending messages. This
also makes the modularization straightforward.
There's no need for a system dictionary. It was a profound and
+1 510 984 8117
(Skype rings this until 31 January 2014)
More information about the Pharo-dev