Author: audreyt
Date: Thu Aug 10 19:18:48 2006
New Revision: 10805
Modified:
doc/trunk/design/syn/S02.pod
doc/trunk/design/syn/S03.pod
Log:
* Two small typo fix:
"value-bases comparison" -> "value-based comparison"
"Storeable" -> "Storable"
Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod (original)
+++ doc/trunk/design/syn/S02.pod Thu Aug 10 19:18:48 2006
@@ -440,7 +440,7 @@
Some object types can behave as value types. Every object can produce
a "safe key identifier" (C<SKID> for short) that uniquely identifies the
-object for hashing and other value-bases comparisons. Normal objects
+object for hashing and other value-based comparisons. Normal objects
just use their address in memory, but if a class wishes to behave as a
value type, it can define a C<.SKID> method that makes different objects
look like the same object if they happen to have the same contents.
Modified: doc/trunk/design/syn/S03.pod
==============================================================================
--- doc/trunk/design/syn/S03.pod (original)
+++ doc/trunk/design/syn/S03.pod Thu Aug 10 19:18:48 2006
@@ -584,15 +584,15 @@
reversible by putting the leading term into a closure to defer the
binding of C<$_>. For example:
- $x ~~ .does(Storeable) # okay
- .does(Storeable) ~~ $x # not okay--gets wrong $_ on left
- { .does(Storeable) } ~~ $x # okay--closure binds its $_ to $x
+ $x ~~ .does(Storable) # okay
+ .does(Storable) ~~ $x # not okay--gets wrong $_ on left
+ { .does(Storable) } ~~ $x # okay--closure binds its $_ to $x
Exactly the same consideration applies to C<given> and C<when>:
- given $x { when .does(Storeable) {...} } # okay
- given .does(Storeable) { when $x {...} } # not okay
- given { .does(Storeable) } { when $x {...} } # okay
+ given $x { when .does(Storable) {...} } # okay
+ given .does(Storable) { when $x {...} } # not okay
+ given { .does(Storable) } { when $x {...} } # okay
Boolean expressions are those known to return a boolean value, such
as comparisons, or the unary C<?> operator. They may reference C<$_>