Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

r29055 - docs/Perl6/Spec

0 views
Skip to first unread message

pugs-c...@feather.perl6.nl

unread,
Nov 11, 2009, 12:13:35 PM11/11/09
to perl6-l...@perl.org
Author: pmurias
Date: 2009-11-11 18:13:35 +0100 (Wed, 11 Nov 2009)
New Revision: 29055

Modified:
docs/Perl6/Spec/S04-control.pod
Log:
[S04] clarify the return value of {}

Modified: docs/Perl6/Spec/S04-control.pod
===================================================================
--- docs/Perl6/Spec/S04-control.pod 2009-11-11 16:44:58 UTC (rev 29054)
+++ docs/Perl6/Spec/S04-control.pod 2009-11-11 17:13:35 UTC (rev 29055)
@@ -195,6 +195,7 @@
=head1 The Relationship of Blocks and Statements

The return value of a block is the value of its final statement.
+The value of an empty block is C<Nil>.
(This is subtly different from Perl 5's behavior, which was to return
the value of the last expression evaluated, even if that expression
was just a conditional.)

0 new messages