Author: szabgab
Date: 2009-04-28 18:26:17 +0200 (Tue, 28 Apr 2009)
New Revision: 26542
Modified:
docs/Perl6/Spec/S11-modules.pod
docs/Perl6/Spec/S21-calling-foreign-code.pod
docs/Perl6/Spec/S32-setting-library/IO.pod
docs/Perl6/Spec/S32-setting-library/Str.pod
Log:
add some X<>-es to the docs
Modified: docs/Perl6/Spec/S11-modules.pod
===================================================================
--- docs/Perl6/Spec/S11-modules.pod 2009-04-28 16:25:39 UTC (rev 26541)
+++ docs/Perl6/Spec/S11-modules.pod 2009-04-28 16:26:17 UTC (rev 26542)
@@ -49,6 +49,7 @@
the current package is C<GLOBAL>, so the first such declaration in the
file is automatically global.
+X<use>
You can use C<our module> to explicitly
declare a module in the current package (or module, or class).
To declare a lexically scoped module, use C<my module>.
@@ -125,6 +126,7 @@
C<EXPORT> method with the class itself as the invocant.
=head1 Compile-time Importation
+X<use>
Importing via C<use> binds into the current lexical scope by default
(rather than the current package, as in PerlĀ 5).
Modified: docs/Perl6/Spec/S21-calling-foreign-code.pod
===================================================================
--- docs/Perl6/Spec/S21-calling-foreign-code.pod 2009-04-28 16:25:39 UTC
(rev 26541)
+++ docs/Perl6/Spec/S21-calling-foreign-code.pod 2009-04-28 16:26:17 UTC
(rev 26542)
@@ -28,6 +28,7 @@
be standardised are specified here.
=head1 Specification
+X<use>
The C<use> statement allows an external language to be specified in
addition to (or instead of) an authority, so that you can use modules
Modified: docs/Perl6/Spec/S32-setting-library/IO.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/IO.pod 2009-04-28 16:25:39 UTC (rev
26541)
+++ docs/Perl6/Spec/S32-setting-library/IO.pod 2009-04-28 16:26:17 UTC (rev
26542)
@@ -35,6 +35,7 @@
=over 4
=item open
+X<open>
multi open (Str $name,
Bool :$rw = False,
@@ -56,12 +57,14 @@
than C<Str> types.
=item getc
+X<getc>
method getc (Int $chars = 1 --> Char)
See below for details.
=item print
+X<print>
method print (*...@list --> Bool)
multi print (*...@list --> Bool)
@@ -72,6 +75,7 @@
See below for details.
=item say
+X<say>
method say (*...@list --> Bool)
multi say (*...@list --> Bool)
@@ -82,6 +86,7 @@
See below for details.
=item printf
+X<printf>
method printf (Str $fmt, *...@list --> Bool)
multi printf (Str $fmt, *...@list --> Bool)
@@ -89,6 +94,7 @@
See below for details.
=item uri
+X<uri>X<ftp>X<http>
method uri(Str $uri --> IO::Streamable);
sub uri(Str $uri --> IO::Streamable);
Modified: docs/Perl6/Spec/S32-setting-library/Str.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/Str.pod 2009-04-28 16:25:39 UTC (rev
26541)
+++ docs/Perl6/Spec/S32-setting-library/Str.pod 2009-04-28 16:26:17 UTC (rev
26542)
@@ -312,6 +312,7 @@
Do we even want this method at all?]
=item rindex
+X<rindex>
our StrPos multi method rindex( Str $string: Str $substring, StrPos $pos? )
is export
@@ -320,6 +321,7 @@
works backwards. See C<index> for more detail.
=item split
+X<split>
our List multi split ( Str $delimiter, Str $input, Int $limit = * )
our List multi split ( Regex $delimiter, Str $input, Int $limit = * )