[BUG?] Missing class checks on send| and send& ?

Mike Rutenberg mdr at scn.org
Sat Mar 17 09:45:48 UTC 2001


If I evalute the expression
	true | 4
I get back
	true
instead of the error I would expect to get complaining that 4 is not
boolean.  The same happens for "true & 4".

Is this intentional, or is it a missing check in the interpreter?

This behaviour actually makes some incorrect code work that I would
prefer to visibly fail, for example:
	oldName = '.all.' | oldName = '.unclassified.' ifTrue: [^ self].

Mike





More information about the Squeak-dev mailing list