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.)