class: Behavior
added:6 methods
comment/format in:
#classVarNames
#instVarNames
#instanceVariableNames
added comment to explain instVarNames/instancVariableNames
and classVarNames/classVariableNames confusion
--- a/Behavior.st Fri Feb 14 17:23:11 2014 +0100
+++ b/Behavior.st Fri Feb 14 17:35:05 2014 +0100
@@ -1098,6 +1098,7 @@
+
!Behavior methodsFor:'Compatibility-Dolphin'!
allSubinstances
@@ -4799,13 +4800,29 @@
"return a collection of the class variable name-strings.
Returning empty here, since Behavior does not define any classVariables.
(only Classes do). This allows different Behavior-like objects
- (alien classes) to be handled by the browser as well."
+ (alien classes) to be handled by the browser as well.
+ Traditionally, this was called classVarNames, but newer versions of squeak
+ seem to have changed to use classVariableNames.
+ So you probably should use the alias"
^ #()
"Created: 16.4.1996 / 17:57:31 / cg"
!
+classVariableNames
+ "alias for classVarNames.
+ Traditionally, this was called classVarNames, but newer versions of squeak
+ seem to have changed to use classVariableNames.
+ So you probably should use this alias"
+
+ ^ self classVarNames
+
+ "
+ Infinity classVariableNames
+ "
+!
+
classVariableString
"return a string of the class variables names.
Returning empty here, since Behavior does not define any classVariables.
@@ -4827,7 +4844,10 @@
instVarNames
"return a collection of the instance variable name-strings.
- Behavior does not provide this info - generate synthetic names."
+ Behavior does not provide this info - generate synthetic names.
+ Traditionally, this was called instVarNames, but newer versions of squeak
+ seem to have changed to use instanceVariableNames.
+ So you probably should use the alias"
|superclass superInsts|
@@ -4844,7 +4864,10 @@
!
instanceVariableNames
- "alias for instVarNames."
+ "alias for instVarNames.
+ Traditionally, this was called instVarNames, but newer versions of squeak
+ seem to have changed to use instanceVariableNames.
+ So you probably should use this alias"
^ self instVarNames
@@ -5033,10 +5056,10 @@
!Behavior class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/Behavior.st,v 1.354 2014-02-12 19:06:28 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/Behavior.st,v 1.355 2014-02-14 16:35:05 cg Exp $'
!
version_CVS
- ^ '$Header: /cvs/stx/stx/libbasic/Behavior.st,v 1.354 2014-02-12 19:06:28 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/Behavior.st,v 1.355 2014-02-14 16:35:05 cg Exp $'
! !