Home Segments Index Top Previous Next

358: Sidetrip

If you use Smalltalk Express, you can avoid the at:put: message altogether, relying instead on assignment to create and initialize global variables:

Workspace
TestVariable := 8. 

Note, however, that other versions of Smalltalk issue a warning if you use assignment to create and initialize global variables, and still others report an error.