From 001c3c51d1d471266e2a6c3da873e448b161c64b Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Fri, 26 Nov 2010 14:51:07 -0800 Subject: [PATCH] =?utf8?q?Clarify=20op=5Flvalue=E2=80=99s=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit as requested by Reini Urban [perl #78908] --- op.c | 12 ++++++++---- 1 file 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 represents the context type, roughly based on the type of op that would do the modifying, although C 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 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 */ -- 2.7.4