> Nicolas
>
> in 1354 you change
>
> whichClassDefinesClassVar: aString
> ^self whichSuperclassSatisfies:
> [:aClass |
> (aClass classVarNames collect: [:each | each asString])
> includes: aString asString]
>
> why not returning #() instead of nil?
>
>
> whichClassDefinesClassVar: aString
> Symbol hasInterned: aString ifTrue: [ :aSymbol |
> ^self whichSuperclassSatisfies:
> [:aClass |
> aClass classVarNames anySatisfy: [:each | each =
> aSymbol]]].
> ^nil
>
> I saw that you have second version but it did not change it.
I did it in 11071
-> #()
>
> Then I saw that you often do
> ... array sort
>
> I imagine that this is because like that you keep the same semantics in
> client code.
> Now may be one of these days we could fix the class builder to inforce the
> order.
> Naively I was dreaming that classVar would be sorted once for all.
>
> Stef
>
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project