[squeak-dev] Urgent: how to define a global?

Chris Muller asqueaker at gmail.com
Thu Oct 30 18:27:11 UTC 2014

Thanks guys, those both helped.  After defining X I found I could do a
"Smalltalk importSelf" to get it copied into the 'bindings'

My image is only slightly old but now I see I can define a global just
fine in a trunk image so maybe I'll try to see what the difference
that it works there but not in mine if it happens again..

On Wed, Oct 29, 2014 at 5:06 PM, Nicolas Cellier
<nicolas.cellier.aka.nice at gmail.com> wrote:
> So after some digging i found those questions aimed at resolving failing
> tests
> http://lists.squeakfoundation.org/pipermail/squeak-dev/2014-May/178411.html
> http://lists.squeakfoundation.org/pipermail/squeak-dev/2014-April/177744.html
> If someone can propose partial answers, it will benefit to the environment
> science
> 2014-10-29 20:21 GMT+01:00 Nicolas Cellier
> <nicolas.cellier.aka.nice at gmail.com>:
>> I've asked several questions about this a few months ago (dig squeak-dev
>> if you wish, i'm in a hurry...)
>> No answer.
>> You made an effort to comment the classes, but Colin did completely change
>> the implementation without updating the comment...
>> Now who knows what's in the mind of the conceptor?
>> It's like the fresh environment is abandonware...
>> 2014-10-29 19:53 GMT+01:00 Chris Muller <ma.chris.m at gmail.com>:
>>> Trying to debug a server, need to define a global OrderedCollection
>>> "X" which I want to put debugging objects into.  In a workspace, I
>>> type:
>>> X := OrderedCollection new
>>> System asks me to correct or define a global.  I choose to define a
>>> global.
>>> But I still cannot access X.  It keeps asking me to correct or define
>>> a global.  Yippee, great thing to happen at 4am when you just need to
>>> debug something!
>>> Digging in shows that when I try to access X, it ends up looking in
>>> Smalltalk environment 'bindings' IdentityDictionary, but when I
>>> defined X, it put the binding #X=>nil into Smalltalk environment
>>> 'declarations' only.
>>> I don't know what 'declarations' vs. 'bindings' are and I don't care,
>>> I just need to be able to define the global, could someone pelase tell
>>> me the proper fix?
>>>   a) Defining X should put it in 'bindings' instead of 'declarations'?
>>>   b) Accessing X should access from 'declarations' instead of 'bindings'?
>>>   c) Defining X should put it in BOTH  'declarations' and 'bindings'?

More information about the Squeak-dev mailing list