[squeak-dev] colorful Problem
Thiede, Christoph
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.
Apologies again.
Ralph Boland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200316/4ac16714/attachment.html>
More information about the Squeak-dev
mailing list
|