#UI_ENHANCEMENT
authorClaus Gittinger <cg@exept.de>
Sat, 23 Jan 2016 11:30:05 +0100
changeset 19093 c07a1b2d0e11
parent 19092 4a5b5b1e6f36
child 19094 784b51cf4213
#UI_ENHANCEMENT class: Integer comment/format in: #|
Integer.st
--- a/Integer.st	Sat Jan 23 01:10:49 2016 +0100
+++ b/Integer.st	Sat Jan 23 11:30:05 2016 +0100
@@ -1228,9 +1228,10 @@
     "return the bitwise-or of the receiver and the argument, anInteger.
      Same as bitOr: - added for compatibility with Dolphin Smalltalk.
      Notice:
-        please do not use | for integers in new code; it makes the code harder
-        to understand, as it may be not obvious, whether a boolean or a bitWise or is intended.
-        For integers, use bitOr: to make the intention explicit."
+        PLEASE DO NOT USE | for integers in new code; it makes the code harder
+        to understand, as it may be not obvious, whether a boolean-or a bitWise-or is intended.
+        For integers, use bitOr: to make the intention explicit.
+        For booleans, consider using or:, which is does not evaluate the right part if the left is true."
 
     ^ self bitOr:aNumber