[Pharo-project] instanceVariableNames type vs classVariableNames type
coloredPointClass classVarNames returns a set while coloredPointClass instanceVariableNames returns an array Yeah.... regularity a la Smalltalk Stef
Well, both are collections. The order of instance variables is essential for compiling code. Does the order of class variable names matter ? Nicolas 2009/9/5 Stéphane Ducasse <stephane.ducasse@inria.fr>:
coloredPointClass classVarNames     returns a set while
coloredPointClass instanceVariableNames     returns an array
Yeah.... regularity a la Smalltalk
Stef
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
I do not know if the order of class variable is relevant. Now I found that a bad design to have that different types. Regularity is a value because it favors simplicity. For example I cannot use the same protocol for both tests. Stef
Well, both are collections. The order of instance variables is essential for compiling code. Does the order of class variable names matter ?
Nicolas
2009/9/5 Stéphane Ducasse <stephane.ducasse@inria.fr>:
coloredPointClass classVarNames returns a set while
coloredPointClass instanceVariableNames returns an array
Yeah.... regularity a la Smalltalk
Stef
IMO, they should be an ordered collections boths (Arrays, not Sets) 2009/9/5 Stéphane Ducasse <stephane.ducasse@inria.fr>:
I do not know if the order of class variable is relevant. Now I found that a bad design to have that different types. Regularity is a value because it favors simplicity. For example I cannot use the same protocol for both tests.
Stef
Well, both are collections. The order of instance variables is essential for compiling code. Does the order of class variable names matter ?
Nicolas
2009/9/5 Stéphane Ducasse <stephane.ducasse@inria.fr>:
coloredPointClass classVarNames     returns a set while
coloredPointClass instanceVariableNames     returns an array
Yeah.... regularity a la Smalltalk
Stef
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.
participants (3)
-
Igor Stasenko -
Nicolas Cellier -
Stéphane Ducasse