The Smalltalk syntax does not allow leading numbers in variable or selectors. Prefix it with an underscore. It is strange that you could add an instance-variable with that name in the first place. Lukas On 6 January 2012 16:34, Ben Coman <btc@openinworld.com> wrote:
For the following accepted class definition (so presumably leading zero is a valid instance variable name), from the menu selecting  "Refactor class > Accessors" fails with "Error: End of statement list encountered
EpcimIdentifiedObject subclass: #EpcimBaseVoltage  instanceVariableNames: '0nVoltageLevel'  classVariableNames: ''  poolDictionaries: ''  category: 'IEC61970-Core'
If I take away the leading zero on the instance variable it works okay. Â I can get by with it not working but wondered whether I log a bug report or am I doing something wrong? Â I do want to keep the leading zero because I am using it to mark the multiplicity of associations (eg see BaseVoltage/Voltage down the bottom of [1]). [1] http://forum.world.st/forward-engineering-UML-models-into-Smalltalk-code-td3...
-- Lukas Renggli www.lukas-renggli.ch