Author: carlin
Date: 2009-10-12 03:15:43 +0200 (Mon, 12 Oct 2009)
New Revision: 28768
Modified:
docs/Perl6/Spec/S16-io.pod
docs/Perl6/Spec/S29-functions.pod
Log:
[Spec/S29-functions.pod] Added some details about die and fail
Modified: docs/Perl6/Spec/S16-io.pod
===================================================================
--- docs/Perl6/Spec/S16-io.pod 2009-10-12 01:03:40 UTC (rev 28767)
+++ docs/Perl6/Spec/S16-io.pod 2009-10-12 01:15:43 UTC (rev 28768)
@@ -188,7 +188,7 @@
* It can only be assigned an absolute path; if you want to make relative
changes, use the Array interface
-$*CWD is specific to the current thread, unlike %*ENVE<lt>PATHE<gt> or the
+$*CWD is specific to the current thread, unlike C<< %*ENV<PATH> >> or the
native getcwd/chdir path, which are both usually process-wide.
The variable is used in at least these cases:
Modified: docs/Perl6/Spec/S29-functions.pod
===================================================================
--- docs/Perl6/Spec/S29-functions.pod 2009-10-12 01:03:40 UTC (rev 28767)
+++ docs/Perl6/Spec/S29-functions.pod 2009-10-12 01:15:43 UTC (rev 28768)
@@ -14,12 +14,13 @@
Carl Mäsak <[email protected]>
Moritz Lenz <[email protected]>
Tim Nelson <[email protected]>
+ Carlin Bingham <[email protected]>
=head1 Version
Created: 12 Mar 2005
- Last Modified: 30 May 2009
+ Last Modified: 13 October 2009
Version: 43
The document is a draft.
@@ -252,10 +253,18 @@
=item die
+ multi die (@LIST)
+
+Prints each element to $*ERR (STDERR) and throws an exception.
+
=item fail
-B<TODO>: Research the exception handling system.
+ multi fail (Str $message)
+Can only be called inside a routine and causes the routine to C<return> an
+unthrown exception; a C<Failure> object which stringifies to C<$message>.
+If C<use fatal> is in effect where the routine was called from, it throws
+the exception.
=back