Author: wayland
Date: 2009-02-27 03:44:46 +0100 (Fri, 27 Feb 2009)
New Revision: 25601
Modified:
docs/Perl6/Spec/S03-operators.pod
docs/Perl6/Spec/S29-functions.pod
docs/Perl6/Spec/S32-setting-library/Callable.pod
docs/Perl6/Spec/S32-setting-library/Containers.pod
docs/Perl6/Spec/S32-setting-library/Str.pod
Log:
- Standardised on .signature vs. .sig
- Added some things to S29/S32 that Masak highlighted needed to be added
Modified: docs/Perl6/Spec/S03-operators.pod
===================================================================
--- docs/Perl6/Spec/S03-operators.pod 2009-02-26 23:53:35 UTC (rev 25600)
+++ docs/Perl6/Spec/S03-operators.pod 2009-02-27 02:44:46 UTC (rev 25601)
@@ -3096,7 +3096,7 @@
Any Type type membership $_.does(X)
Signature Signature sig compatibility $_ is a subset of X ???
- Code Signature sig compatibility $_.sig is a subset of X ???
+ Code Signature sig compatibility $_.signature is a subset of X
???
Capture Signature parameters bindable $_ could bind to X (doesn't!)
Any Signature parameters bindable |$_ could bind to X (doesn't!)
Modified: docs/Perl6/Spec/S29-functions.pod
===================================================================
--- docs/Perl6/Spec/S29-functions.pod 2009-02-26 23:53:35 UTC (rev 25600)
+++ docs/Perl6/Spec/S29-functions.pod 2009-02-27 02:44:46 UTC (rev 25601)
@@ -118,8 +118,8 @@
=item Ordering
- subset KeyExtractor of Code where { .sig === :(Any --> Any) };
- subset Comparator of Code where { .sig === :(Any, Any --> Int ) };
+ subset KeyExtractor of Code where { .signature === :(Any --> Any) };
+ subset Comparator of Code where { .signature === :(Any, Any --> Int ) };
subset OrderingPair of Pair where { .left ~~ KeyExtractor && .right ~~
Comparator };
subset Ordering where Signature | KeyExtractor | Comparator | OrderingPair |
Whatever;
Modified: docs/Perl6/Spec/S32-setting-library/Callable.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/Callable.pod 2009-02-26 23:53:35 UTC
(rev 25600)
+++ docs/Perl6/Spec/S32-setting-library/Callable.pod 2009-02-27 02:44:46 UTC
(rev 25601)
@@ -34,12 +34,20 @@
=head2 Code
# Base class for all executable objects
-role Code {...}
+role Code {
+ method Signature signature() {...}
+}
=head2 Block
# Executable objects that have lexical scopes
-role Block does Code does Callable {...}
+role Block does Code does Callable {
+ method next() {...}
+ method last() {...}
+ method redo() {...}
+ method leave() {...}
+ method labels() {...}
+}
=head2 Signature
Modified: docs/Perl6/Spec/S32-setting-library/Containers.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/Containers.pod 2009-02-26 23:53:35 UTC
(rev 25600)
+++ docs/Perl6/Spec/S32-setting-library/Containers.pod 2009-02-27 02:44:46 UTC
(rev 25601)
@@ -669,7 +669,13 @@
=head2 Range
-class Range does Positional {...}
+class Range does Positional {
+ method from() {...}
+ method to() {...}
+ method min() {...}
+ method max() {...}
+ method List minmax() {...}
+}
=head2 Buf
Modified: docs/Perl6/Spec/S32-setting-library/Str.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/Str.pod 2009-02-26 23:53:35 UTC (rev
25600)
+++ docs/Perl6/Spec/S32-setting-library/Str.pod 2009-02-27 02:44:46 UTC (rev
25601)
@@ -503,6 +503,22 @@
=item unpack
+=item match
+
+ method Match match(Str $self: Regex $search);
+
+=item subst
+
+ method subst(Str $self: Regex $search, Str $replacement);
+
+XXX Does this return a Match? A Str?
+
+=item trans
+
+ method trans(Str $self: Str $key, Str $val);
+
+ our multi trans(List of Pair %data);
+
=back
=head1 Additions