Category:Smalltalk: Difference between revisions

Content added Content deleted
Line 347: Line 347:
1) not supported by all dialects. If missing in a particular dialect, a Parser extension is required.
1) not supported by all dialects. If missing in a particular dialect, a Parser extension is required.


===Variables===
===Special "builtin" Pseudo Veriables===
By convention, global and namespace variables are to be used for classes only. As in every other language, it is considered extremely bad style to use globals for anything else.
They are created by telling the namespace to add a binding, as in <lang smalltalk>Smalltalk at:#Foo put:<something></lang>

===Special "builtin" Pseudo Variables===
<lang smalltalk>self "refers to the current receiver"
<lang smalltalk>self "refers to the current receiver"