#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Sat, 14 Apr 2018 06:32:28 +0200
changeset 22673 d6c573129fc4
parent 22672 82462813ccac
child 22674 d0d8880e6081
#DOCUMENTATION by cg class: True comment/format in: #and:and: #and:and:and: #and:and:and:and: #or:or: #or:or:or: #or:or:or:or:
True.st
--- a/True.st	Fri Apr 13 15:21:34 2018 +0200
+++ b/True.st	Sat Apr 14 06:32:28 2018 +0200
@@ -76,7 +76,10 @@
 
 and:block1 and:block2
     "evaluate block1 if the receiver is true, 
-     if that is also true, return the result from block2."
+     if that is also true, return the result from block2.
+     Notice:
+        This method may be open coded (inlined) by the compiler(s)
+        - redefining it may not work as expected."
 
     block1 value ifFalse: [^ false].
     ^ block2 value
@@ -87,7 +90,10 @@
 and:block1 and:block2 and:block3
     "evaluate block1 if the receiver is true, 
      if that is also true, evaluate block2.
-     if that is also true, return the result from block3."
+     if that is also true, return the result from block3.
+     Notice:
+        This method may be open coded (inlined) by the compiler(s)
+        - redefining it may not work as expected."
 
     block1 value ifFalse:[^ false].
     block2 value ifFalse:[^ false].
@@ -98,7 +104,10 @@
     "evaluate block1 if the receiver is true, 
      if that is also true, evaluate block2.
      if that is also true, evaluate block3.
-     if that is also true, return the result from block4."
+     if that is also true, return the result from block4.
+     Notice:
+        This method may be open coded (inlined) by the compiler(s)
+        - redefining it may not work as expected."
 
     block1 value ifFalse:[^ false].
     block2 value ifFalse:[^ false].
@@ -155,14 +164,32 @@
 !
 
 or:block1 or:block2
+    "evaluate block1... if the receiver is false.
+     since the receiver is known to be true simply return true.
+     Notice:
+        This method may be open coded (inlined) by the compiler(s)
+        - redefining it may not work as expected."
+
     ^ self
 !
 
 or:block1 or:block2 or:block3
+    "evaluate block1... if the receiver is false.
+     since the receiver is known to be true simply return true.
+     Notice:
+        This method may be open coded (inlined) by the compiler(s)
+        - redefining it may not work as expected."
+
     ^ self
 !
 
 or:block1 or:block2 or:block3 or:block4
+    "evaluate block1... if the receiver is false.
+     since the receiver is known to be true simply return true.
+     Notice:
+        This method may be open coded (inlined) by the compiler(s)
+        - redefining it may not work as expected."
+
     ^ self
 ! !