[squeak-dev] (Environment named: #Smalltalk) trap in 4.5

Tobias Pape Das.Linux at gmx.de
Thu May 1 21:12:47 UTC 2014


On 01.05.2014, at 22:46, Chris Muller <ma.chris.m at gmail.com> wrote:

> While working on serialization of objects referencing the new
> "Smalltalk globals," (now an Environment), I came across an apparent
> issue with our 4.5 release image.  The Smalltalk Environment is at
> String-key 'Smalltalk' of its 'Instances' IdentityDictionary.
> 
> So we have no way to access (Environment named: 'Smalltalk') or
> (Environment named: #Smalltalk) without inadvertently creating a new
> Environment with that name.
> 
> Both the key and the Smalltalk Environment currently have String's for
> the name, but #environmentNamed: assumes the argument is a Symbol.
> Could we choose to consistently use either Strings or Symbols
> exclusively?
> 
> Either way, I would like to convert the 'Instances' global to a
> regular Dictionary instead of a IdentityDictionary.  If we end up
> deciding to use Symbol names, then logical #= (which defaults to #==
> in Object anyway) works whereas if we use Strings, it will work too.
> 

I'd vote for Symbols and _keeping_ the IdentityDictionary

best
	-tobias

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1625 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140501/9f6c2852/signature.pgp


More information about the Squeak-dev mailing list