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 |
In Squeak 5.3:
colors := Color colorNames asBag.
colors asSet select: [:color | (colors occurrencesOf: color) > 1]. "a Set(#magenta)"
Von: Squeak-dev <[hidden email]> im Auftrag von Ralph Boland <[hidden email]>
Gesendet: Samstag, 14. März 2020 22:38:23 An: [hidden email] 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
Carpe Squeak!
|
Because magenta is also in Color orderedCrayonColorNames Le lun. 16 mars 2020 à 20:01, Thiede, Christoph <[hidden email]> a écrit :
|
Another interesting snippet: (Color allInstances asSet select: [:e | e names size > 1]) collect: [:color | color names]. a Set(#(#yellow #lemon) #(#red #maraschino) #(#blue #blueberry) #(#lightCyan #ice) #(#green #spring) #(#lightOrange #cantaloupe) #(#white #snow) #(#cyan #turquoise) #(#black #licorice)) Le lun. 16 mars 2020 à 23:34, Nicolas Cellier <[hidden email]> a écrit :
|
Free forum by Nabble | Edit this page |