Author: lwall
Date: 2010-02-19 23:45:09 +0100 (Fri, 19 Feb 2010)
New Revision: 29782
Modified:
docs/Perl6/Spec/S02-bits.pod
docs/Perl6/Spec/S09-data.pod
Log:
[S02,S09] default variables to Any, must declare Mu explicitly to hold junctions
(this is to reduce pressure to duplicate == and such with Mu arguments)
most of our failure values should be derived from Any in any case;
Mu is more indicative of a major malfunction now.
Modified: docs/Perl6/Spec/S02-bits.pod
===================================================================
--- docs/Perl6/Spec/S02-bits.pod 2010-02-19 21:17:04 UTC (rev 29781)
+++ docs/Perl6/Spec/S02-bits.pod 2010-02-19 22:45:09 UTC (rev 29782)
@@ -588,7 +588,7 @@
=item *
Variables with non-native types can always contain I<undefined> values,
-such as C<Mu>, C<Whatever> and C<Failure> objects. See S04 for more
+such as C<Any>, C<Whatever> and C<Failure> objects. See S04 for more
about failures (i.e. unthrown exceptions):
my Int $x = Int; # works
@@ -1983,8 +1983,8 @@
Assigning or binding C<Nil> to any scalar container causes the
container to throw out any contents and restore itself to an
uninitialized state (after which it will contain a type object
-appropriate to the declared type of the container, or C<Mu>
-for untyped containers).
+appropriate to the declared type of the container, where C<Any>
+is the default type).
Assigning or binding C<Nil> to any composite container (such as an
C<Array> or C<Hash>) empties the container, resetting it back to an
Modified: docs/Perl6/Spec/S09-data.pod
===================================================================
--- docs/Perl6/Spec/S09-data.pod 2010-02-19 21:17:04 UTC (rev 29781)
+++ docs/Perl6/Spec/S09-data.pod 2010-02-19 22:45:09 UTC (rev 29782)
@@ -258,7 +258,7 @@
=head1 Typed arrays
-The type of value stored in each element of the array (normally C<Mu> for
unspecified type)
+The type of value stored in each element of the array (normally C<Any> for
unspecified type)
can be explicitly specified too, as an external C<of> type:
my num @nums; # Each element stores a native number