April 13, 2011
9:01 a.m.
On 13 Apr 2011, at 10:00, Marcus Denker wrote:
I like this method:
mystery 'mystery' isString ifTrue: ['mystery' become: {0}]. 'mystery' at: 1 put: 'mystery' first + 1. ^ 'mystery' first.
And you were trying to help newcomers or scare them off ? ;-) This is actually a problem in many languages. It is always better to not touch literals (constants is a dangerour word here).