Author: lwall
Date: 2009-12-07 22:59:21 +0100 (Mon, 07 Dec 2009)
New Revision: 29287

Modified:
   docs/Perl6/Spec/S03-operators.pod
   docs/Perl6/Spec/S12-objects.pod
Log:
[S03,S12] remove redundant .Int and .true in describing conditional semantics


Modified: docs/Perl6/Spec/S03-operators.pod
===================================================================
--- docs/Perl6/Spec/S03-operators.pod   2009-12-07 20:06:06 UTC (rev 29286)
+++ docs/Perl6/Spec/S03-operators.pod   2009-12-07 21:59:21 UTC (rev 29287)
@@ -3504,11 +3504,11 @@
     }
 
 because it will always choose the C<True> case.  Instead use something like
-a conditional context uses:
+a conditional context uses internally:
 
     given $boolean {
-        when .Bool.Int.true {...}
-        when .Bool.Int.not {...}
+        when .Bool == 1 {...}
+        when .Bool == 0 {...}
     }
 
 Better, just use an C<if> statement.

Modified: docs/Perl6/Spec/S12-objects.pod
===================================================================
--- docs/Perl6/Spec/S12-objects.pod     2009-12-07 20:06:06 UTC (rev 29286)
+++ docs/Perl6/Spec/S12-objects.pod     2009-12-07 21:59:21 UTC (rev 29287)
@@ -1913,7 +1913,7 @@
 Conditionals evaluate the truth of a boolean expression by testing
 the return value of C<.Bool> like this:
 
-    $obj.Bool.Int != 0
+    $obj.Bool != 0
 
 Never compare a value to "C<true>", or even "C<True>".  Just use it
 in a boolean context.  Well, almost never...

Reply via email to