[etoys-dev] Etoys: Etoys-bf.46.mcz
commits at source.squeak.org
commits at source.squeak.org
Sun Sep 19 13:15:53 EDT 2010
Bert Freudenberg uploaded a new version of Etoys to project Etoys:
http://source.squeak.org/etoys/Etoys-bf.46.mcz
==================== Summary ====================
Name: Etoys-bf.46
Author: bf
Time: 19 September 2010, 4:57:30 pm
UUID: efe4d758-8dc9-4ab3-8dfc-89e732f4deea
Ancestors: Etoys-bf.45
Fix SQ-816: Error when adding variable named 'val'
=============== Diff against Etoys-bf.45 ===============
Item was changed:
----- Method: Player classSide>>compileInstVarAccessorsFor: (in category 'slots') -----
compileInstVarAccessorsFor: varName
"Compile getters and setteres for the given instance variable name"
| nameString |
+ nameString := varName asString capitalized.
+ self compileSilently: ('get{1}
+ ^ {2}' format: {nameString. varName})
- nameString _ varName asString capitalized.
- self compileSilently: ('get', nameString, '
- ^ ', varName)
classified: 'access'.
+ self compileSilently: ('set{1}: a{1}
+ {2} := a{1}' format: {nameString. varName})
- self compileSilently: ('set', nameString, ': val
- ', varName, ' _ val')
classified: 'access'!
More information about the etoys-dev
mailing list