[squeak-dev] colorful Problem
Christoph.Thiede at student.hpi.uni-potsdam.de
Mon Mar 16 19:01:51 UTC 2020
In Squeak 5.3:
colors := Color colorNames asBag.
colors asSet select: [:color | (colors occurrencesOf: color) > 1]. "a Set(#magenta)"
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Ralph Boland <rpboland at gmail.com>
Gesendet: Samstag, 14. März 2020 22:38:23
An: squeak-dev at lists.squeakfoundation.org
Betreff: Re: [squeak-dev] colorful Problem
On 14/03/20 7:55 AM, Ralph Boland wrote:
>> Note that Color colorNames size = 128
>> but: Color colorNames asSet size = 84
> Which vm and image is this result from?
I> couldn't replicate it on linux vm + 5.3-19431 release.
> Regards .. Subbu
I went back to my original image but couldn't reproduce
the problem there (appologies for not doing this in the first place).
The problem is from a method I created to name the crayon colors
which wern't properly named when first released. I made
Color>>initialize invoke this method and it got invoked even though
it is no longer necessary. I have now removed this method.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev