On Sun, 30 Oct 2011, Lukas Renggli wrote:
Hi guys. I still have problems with underscore in Pharo 1.3. I want to use
underscore in both ways: in selectors and as assigment.
Who would tell the system what you mean?
If I do: Scanner allowUnderscoreAsAssignment: true.
then it works in selectrs but not in assigment.
If I do String allowUnderscore.
then it works for assigment but stops working for selector.
This is the point of the design. Maybe the prefix "allow" is not quite
revealing enough, because you cannot have both.
You load the old code with the setting set to true. You fix your
broken assignments and you switch to false to use underscores.
Squeak has decided to go another way and allow both cases kind of
simultaneous. What a broken mess!
It's definitely not broken and it's far from mess. If you enable bot
preferences, then you still have an unambiguous grammar, which lets you
use undescores both in selectors and for assignment.
Levente
Lukas
--
Lukas Renggli
www.lukas-renggli.ch