chiark / gitweb /
doc/concepts.tex: Document changed `and' and `or' combination return values.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 15 Dec 2015 14:34:33 +0000 (14:34 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 15 Dec 2015 14:34:33 +0000 (14:34 +0000)
doc/concepts.tex

index 9a77c446f916cb0b285f0e7da429e9d7892e4a37..f332be1bf3f4330bc263868c621461a120abcf85 100644 (file)
@@ -621,14 +621,15 @@ The aggregating method combinations provided are as follows.
 \item[max] The message must return a scalar type.  The applicable primary
   methods are invoked in turn.  The final result is the largest of the
   individual values.
-\item[and] The message must return @|int|.  The applicable primary methods
-  are invoked in turn.  If any method returns zero then the final result is
-  zero and no further methods are invoked.  If all of the applicable primary
-  methods return nonzero, then the final result is a nonzero value.
-\item[or] The message must return @|int|.  The applicable primary methods are
-  invoked in turn.  If any method returns nonzero then the final result is a
-  nonzero value and no further methods are invoked.  If all of the applicable
-  primary methods return zero, then the final result is zero.
+\item[and] The message must return a scalar type.  The applicable primary
+  methods are invoked in turn.  If any method returns zero then the final
+  result is zero and no further methods are invoked.  If all of the
+  applicable primary methods return nonzero, then the final result is the
+  result of the last primary method.
+\item[or] The message must return a scalar type.  The applicable primary
+  methods are invoked in turn.  If any method returns nonzero then the final
+  result is that nonzero value and no further methods are invoked.  If all of
+  the applicable primary methods return zero, then the final result is zero.
 \end{description}
 
 There is also a @|custom| aggregating method combination, which is described