[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] bug: Smalltalk snapshot: aString

From: Stefan Schmiedl
Subject: Re: [Help-smalltalk] bug: Smalltalk snapshot: aString
Date: Sun, 2 Oct 2005 10:26:28 +0200
User-agent: Mutt/1.5.8i

LD (02.10. 13:01):

> Is the Smalltalk class use above an alias for SystemDictionary? How  
> does this all tie together in other words? Where is this behaviour  
> customised?

Talk to the system:

GNU Smalltalk ready

st> Smalltalk class name !
st> SystemDictionary allInstances !
WeakArray new "<0x2a9617ecc0>"
st> SystemDictionary allInstances size !
st> SystemDictionary allInstances first = Smalltalk !

So you see that Smalltalk is an instance of SystemDictionary.
The capital letter is used for "global" variables which are
automatically looked up in the SystemDictionary instance referenced by
the symbol #Smalltalk:

st> Smalltalk at: #Object !
st> Smalltalk at: #SystemDictionary !
st> Smalltalk at: #Smalltalk !
SystemDictionary new: 512 "<0x2a96104030>"
st> Smalltalk !
SystemDictionary new: 512 "<0x2a96104030>"

Smalltalk is interactive and introspective -- you just need to ask the
right questions...


Stefan Schmiedl
|Approximity GmbH               | EDV-Beratung Schmiedl                  |
|     | Am Bräuweiher 4, 93499 Zandt, Germany  |
|mailto:address@hidden  | Tel. (09944) 3068-98, Fax -97          |

reply via email to

[Prev in Thread] Current Thread [Next in Thread]