develooper Front page | perl.perl5.changes | Postings from November 2010

[perl.git] branch blead, updated. v5.13.7-120-g001c3c5

From:
Father Chrysostomos
Date:
November 26, 2010 14:51
Subject:
[perl.git] branch blead, updated. v5.13.7-120-g001c3c5
Message ID:
E1PM78k-0004Yj-JL@camel.ams6.corp.booking.com
In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/001c3c51d1d471266e2a6c3da873e448b161c64b?hp=bcc76ee34baf39636d60454c7d178f030ac755e3>

- Log -----------------------------------------------------------------
commit 001c3c51d1d471266e2a6c3da873e448b161c64b
Author: Father Chrysostomos <sprout@cpan.org>
Date:   Fri Nov 26 14:51:07 2010 -0800

    Clarify op_lvalue’s docs
    
    as requested by Reini Urban [perl #78908]
-----------------------------------------------------------------------

Summary of changes:
 op.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/op.c b/op.c
index 5346a89..2da3db4 100644
--- a/op.c
+++ b/op.c
@@ -1420,10 +1420,14 @@ Propagate lvalue ("modifiable") context to an op and its children.
 I<type> represents the context type, roughly based on the type of op that
 would do the modifying, although C<local()> is represented by OP_NULL,
 because it has no op type of its own (it is signalled by a flag on
-the lvalue op).  This function detects things that can't be modified,
-such as C<$x+1>, and generates errors for them.  It also flags things
-that need to behave specially in an lvalue context, such as C<$$x>
-which might have to vivify a reference in C<$x>.
+the lvalue op).
+
+This function detects things that can't be modified, such as C<$x+1>, and
+generates errors for them. For example, C<$x+1 = 2> would cause it to be
+called with an op of type OP_ADD and a C<type> argument of OP_SASSIGN.
+
+It also flags things that need to behave specially in an lvalue context,
+such as C<$$x = 5> which might have to vivify a reference in C<$x>.
 
 =cut
 */

--
Perl5 Master Repository



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About