<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><font face="Georgia">You would find the error in that case, but</font></p>
<p><font face="Georgia">'a' = 'a' | 'a' = 'b' ifTrue: []</font></p>
<p><font face="Georgia">runs runs without error, although probably
not the way the author intended. Just for fun I have modified my
image to insist the arg be a boolean. Nothing unexpected so far.<br>
</font></p>
<br>
<div class="moz-cite-prefix">On 1/3/17 1:22 PM, Louis LaBrunda
wrote:<br>
</div>
<blockquote cite="mid:0vqn6ct7gc7h9gespdm9ou866s9s4pkflu@4ax.com"
type="cite">
<pre wrap="">Hi Bob,
It is the same in VA Smalltalk. The code of false>>| is:
| aBoolean
"Answer true if either the receiver or aBoolean
is true; answer false otherwise."
^aBoolean
This is about as simple an implementation as one can have. Anything else would require testing
the class of the parameter (aBoolean) adding a fair amount of overhead for what I think is very
little gain. I expect the error would be found soon anyway when the result is sent an #ifTrue:
like message.
Lou
On Tue, 3 Jan 2017 07:17:45 -0500, Bob Arning <a class="moz-txt-link-rfc2396E" href="mailto:arning315@comcast.net"><arning315@comcast.net></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">This has been this way for aeons, but it surprised me:
false | 'hello' ==> 'hello'
Does anything actually depend on this being this way?
</pre>
</blockquote>
</blockquote>
<br>
</body>
</html>