<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
                                        Yes, the bit-wise operators from C translate to #bit*: messages in Smalltalk.<div><br></div><div>However, ages ago, someone started to support #>> and #<< on Integer for bit shifting. So, it is somewhat inconsistent.</div><div><br></div><div>Even though there are & and | in Boolean, most of the time, the code reads better with #and: or #or:. It can be challenging already to teach students the difference between "expOne or: [expTwo]" and "expOne or: (expTwo)". Adding & and | to the mix is not helpful. :-D</div><div><br></div><div>Next step would be to support #ifTrue:ifFalse: on Integer? Please, don't. :-)</div><div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 23.05.2020 14:12:47 schrieb K K Subbu <kksubbu.ml@gmail.com>:</p><div style="font-family:Arial,Helvetica,sans-serif">On 23/05/20 3:18 pm, Edgar De Cleene wrote:<br>> Seems<br>> Integer>>#|<br>> <br>> Is not in Squeak 6.0 .<br>> Any reason ?<br>AFAIK, #| has always been boolean or operator in Smalltalk. The bitwise <br>or is #bitOr: as in:<br><br>  2r1011 bitOr: 2r101 "15"<br><br>HTH .. Subbu<br><br></div></blockquote>
                                        </div></body>