Home Segments Index Top Previous Next

354: Mainline

You can tell Smalltalk to look up the value of a global variable using an at: message, with a key, or you can use the key as a variable reference, as in the following examples:

Workspace
Transcript show: (Smalltalk at: #FatRatio) printString; 
           cr; 
           show: FatRatio printString 
Transcript 
9 
9