!| || and !|! as binary methods?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

!| || and !|! as binary methods?

Ralph Boland
A few days ago I tried to define  !|  ||  and  !|!  as binary methods in Squeak.
Today I tried the same with Pharo.
They all fail because the parser interprets  the '|' character
(the second '|' character in the case of  ||) as the beginning of
the declaration of local variables.

Is this a parsing error or the way Squeak/Pharo is intended to be defined?

Now you might think !|  and  !|!  are pretty weird (which doesn't
invalidate my question) but I think  ||  is pretty natural as a binary method!

Regards,

Ralph Boland




--
Had a wife and kids in Florida, Jack (Nicklaus)
Went out for a "ride" but I couldn't get back
As a ten timer being hunted down
OR
When the wife found out who I was knowing (biblically speaking)
I hit a hydrant and I just kept going (till I hit a tree).
...

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project