In perl.git, the branch sprout/lvref has been created
<http://perl5.git.perl.org/perl.git/commitdiff/40b38664db3ae702a99c3dd3016ada3ca78b5d94?hp=0000000000000000000000000000000000000000>
at 40b38664db3ae702a99c3dd3016ada3ca78b5d94 (commit)
- Log -----------------------------------------------------------------
commit 40b38664db3ae702a99c3dd3016ada3ca78b5d94
Author: Father Chrysostomos <[email protected]>
Date: Tue Oct 7 23:06:21 2014 -0700
Deparse lvalue references
M ext/B/t/concise-xs.t
M lib/B/Deparse.pm
M lib/B/Deparse.t
commit a9e21120caabd8c80d8a9026dc46618c0cffe4eb
Author: Father Chrysostomos <[email protected]>
Date: Mon Oct 6 22:12:27 2014 -0700
wip
M lib/B/Deparse.pm
M lib/B/Deparse.t
commit ac3250811f5f94d38980a0d1daf75fa4cf2d525e
Author: Father Chrysostomos <[email protected]>
Date: Sat Oct 4 06:35:29 2014 -0700
lvref.t: Remove temporary eval & skip
M t/op/lvref.t
commit d6f2e83909577bab846dc3da3ac0e466a40a589f
Author: Father Chrysostomos <[email protected]>
Date: Sat Oct 4 06:31:11 2014 -0700
lvref.t: Fix hash elem tests
I was testing against a package hash for the âlexicalâ tests.
M t/op/lvref.t
commit fd65cfbb79bd7b70368ef9de1d464840b43a4ab4
Author: Father Chrysostomos <[email protected]>
Date: Fri Oct 3 19:50:45 2014 -0700
Handle state vars correctly in ref assignment
Only \state(@_) was handling this correctly, as pp_lvavref
calls pp_padav.
M lib/B/Op_private.pm
M op.c
M opcode.h
M pp.c
M regen/op_private
M t/op/lvref.t
commit 664b0e5274edcd0e71bfc285de113c600e87cecb
Author: Father Chrysostomos <[email protected]>
Date: Fri Oct 3 16:33:55 2014 -0700
lvref.t: Tests for \my assignment and scope exit
M t/op/lvref.t
commit 3bcc249676cbaba770aebf205d9735cb4b92dc57
Author: Father Chrysostomos <[email protected]>
Date: Fri Oct 3 12:40:23 2014 -0700
Rework lvref.t foreach tests
Remove the to-do marker.
Add tests for package vars, too.
Redo the \my &a test. Iâve decided not to bother with the âmy &aâ
syntax for now (if at all). It is problematic and needs discussion.
(If âmy &aâ is allowed in foreach, then it should be allowed else-
where, but âmy &a;â would call a stub.)
M t/op/lvref.t
commit 21faf36cc886fa303a35c28a726e3f43365a4fd5
Author: Father Chrysostomos <[email protected]>
Date: Fri Oct 3 12:29:35 2014 -0700
Get foreach \&foo working
Previously these would crash. Usually, &foo is wrapped in an entersub
op which gets converted to rv2cv when refgen applies lvalue context.
In foreach \&foo, there is no need for us to go the entersub route;
rather we pass the original rv2cv op directly to refgen without the
entersub wrapping. So the resulting op tree is different. S_lvref
was not expecting this alternate op tree.
M op.c
commit f5b363963f1b6889a2237bac4dcbbe353b1a1aef
Author: Father Chrysostomos <[email protected]>
Date: Thu Oct 2 22:38:27 2014 -0700
foreach \$var
Some passing tests are still marked to-do. We need more tests still.
M cop.h
M mg.c
M mg.h
M op.c
M perly.act
M perly.h
M perly.tab
M perly.y
M pp.c
M pp_ctl.c
M pp_hot.c
commit 34c6bfd3316425d9a170d912d2236f53c556622f
Author: Father Chrysostomos <[email protected]>
Date: Thu Oct 2 21:49:28 2014 -0700
Add OPpLVREF_ITER flag
An lvalue reference used as an iterator variable will be implemented
using an lvref op with this flag set.
M lib/B/Op_private.pm
M opcode.h
M regen/op_private
commit 59845a23fafd45e25cc19f334fc335fb1510fec9
Author: Father Chrysostomos <[email protected]>
Date: Wed Oct 1 20:18:06 2014 -0700
Fix err message for $cond ? \bad : ... = ...
The error message code in S_lvref was assuming that it only handled
list assignment (which was originally the case), but
$condition ? \pos : whatever = ...
goes through that same code path, and that is a scalar assignment.
So pass the assignment type through to S_lvref.
M op.c
M t/op/lvref.t
commit 08d7e4c375dd7ba17065006f460bcf531b8dcff1
Author: Father Chrysostomos <[email protected]>
Date: Wed Oct 1 20:00:10 2014 -0700
Subroutine reference assignment
M op.c
M t/op/lvref.t
commit d9938ee5c04f07098cbf487d304653a47d25827e
Author: Father Chrysostomos <[email protected]>
Date: Wed Oct 1 18:15:16 2014 -0700
lvref.t: Repeat bad ref tests with list assignment
List assignment goes through a different code path. The errors come
from magic_setlvref in that case, not pp_refassign.
M t/op/lvref.t
commit dad9e36c0f48a7dc01b1a11bdd360eccc3879d3c
Author: Father Chrysostomos <[email protected]>
Date: Tue Sep 30 22:28:48 2014 -0700
lvref.t: do-block err msg is no longer to-do
The previous commitâs rearrangement of things fixed this, too.
M t/op/lvref.t
commit 971b8a36cef70d588f1b1fc223177778ca7496c8
Author: Father Chrysostomos <[email protected]>
Date: Tue Sep 30 22:20:56 2014 -0700
Make \( ?: ) assignment work
When I first implemented list assignment to lvalue references, I
thought I could simply modify the kids of the refgen op (\) in one
spot. But things like ?: make it necessary to do this recursively.
So all that code for turning thingies into lvrefs has been moved into
a separate function patterned after op_lvalue but handling only the
lvref cases.
(I thought about combining it with op_lvalueâs switch statement, but
that would require âif(type == OP_LVREF) goto nomod;â too many times,
which would be harder to maintain.)
M op.c
M t/op/lvref.t
commit 22004ec9db8cc7d2784e6be99313797f0d88ce0f
Author: Father Chrysostomos <[email protected]>
Date: Tue Sep 30 10:28:32 2014 -0700
lvref.t: Remove unnecessary evals
M t/op/lvref.t
commit 6b7c35d5c7367e620db59b3b84c49289fb60352f
Author: Father Chrysostomos <[email protected]>
Date: Tue Sep 30 10:27:34 2014 -0700
Get basic $cond ? \$a : \$b = ... working
When I started working on lvalue references, I envisioned having all
scalar assignments pass through pp_refassign. A refassign op repre-
sents the initial backslash on the lhs *and* the equals sign. For
cases like this, there is no single refgen on the lhs. It turns out
that the approach I am using for list assignments (where the lhs
becomes an lvref op that returns a magic scalar that does the aliasing
when assigned to) is the easiest way to get this working, too.
All this commit has to do is allow âsassignâ lvalue context to apply
to srefgen and fix the completely broken to-do tests. (I have a ten-
dency to write broken to-do tests, as I have no way of testing them at
the time.)
M op.c
M t/op/lvref.t
commit 9caef357674f2374a6478238e2934420a40dc348
Author: Father Chrysostomos <[email protected]>
Date: Mon Sep 29 22:21:21 2014 -0700
Assignment to \(@array)
This is a slurpy lvalue that gobbles up all the rhs elements, which
are expected to be references. So \(@a)=\(@b) makes @a share the
same elements as @b.
We implement this by pushing a null on to the stack as a special
marker that pp_aassign will recognise.
I decided to change the wording for the \local(@a)=... error
slightly, from what my to-do tests had.
Some of the other to-do tests were badly written and had to be
fixed up a bit.
M op.c
M pp.c
M pp_hot.c
M t/op/lvref.t
commit 6ec52bea909e9f87e38dd372c89de93f95f66807
Author: Father Chrysostomos <[email protected]>
Date: Mon Sep 29 22:23:22 2014 -0700
lvavref needs OPpLVAL_INTRO and OPpPAD_STATE
M lib/B/Op_private.pm
M opcode.h
M regen/op_private
commit dc99139324e75b85083caa088342223206920bac
Author: Father Chrysostomos <[email protected]>
Date: Mon Sep 29 21:43:53 2014 -0700
Add lvavref op type
This will be used for slurpy array ref assignments. \(@a) = \(@b)
will make @a share the same elements as @b.
M ext/Opcode/Opcode.pm
M lib/B/Op_private.pm
M opcode.h
M opnames.h
M pp.c
M pp_proto.h
M regen/opcodes
commit 30d21c2a232e776281195781b67205b1861bd88d
Author: Father Chrysostomos <[email protected]>
Date: Mon Sep 29 21:40:28 2014 -0700
lvref is actually a baseop/unop
When used for pad vars, it is childless.
M opcode.h
M regen/opcodes
commit c51f16afa99afbe9d98fa7e32e2fc2a5d503516a
Author: Father Chrysostomos <[email protected]>
Date: Mon Sep 29 18:03:57 2014 -0700
List assignment to array and hash refs
(\@a,\%h)=... works, but \(@a) and \(%h) do not. \(%h) correctly
croaks. (\local @a, \local %h)=... also works.
M mg.c
M op.c
M pp.c
M t/op/lvref.t
commit 387e5b8945fb0b8ca8678befc6e3c79702b9e241
Author: Father Chrysostomos <[email protected]>
Date: Mon Sep 29 15:48:24 2014 -0700
Renumber OPpLVREF_TYPE
to avoid conflicting with OPpPAD_STATE.
M lib/B/Op_private.pm
M opcode.h
M regen/op_private
commit 365e147947e48fbcce7cbf20eb9317d15eb5f55f
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 28 22:17:27 2014 -0700
Assignment to \local @array and \local %hash
Doesnât work with lhs parentheses yet.
M pp.c
M t/op/lvref.t
commit 3e63c909e734d522ee82b91a3741b7d7527f5a88
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 28 11:45:57 2014 -0700
lvref.t: Tests for localised arrays and hashes
M t/op/lvref.t
commit fdad0d0fcf7be63992943d2173459cf6cab5a0e2
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 28 00:53:19 2014 -0700
lvref.t: Test assigning non-array to array
Same with hashes.
M t/op/lvref.t
commit 386a4574ae4ffa00a850d88fe1eb5f061a5185b4
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 28 00:52:45 2014 -0700
Simple \@array and \%hash assignment
Parentheses do not work yet. Neither does local.
M op.c
M pp.c
M t/op/lvref.t
commit 8e1c2887fa5a4dd51eac6db3e93173f490bb8ab6
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 28 00:42:09 2014 -0700
lvref.t: To-do tests for hashes
Concerning the error message tests, âparenthesized hashâ would be more
helpful than âhash dereferenceâ or âprivate hashâ (as would be
provided
by OP_DESC), as %foo doesnât look like a hash dereference and âprivate
hashâ suggests that \%foo= wonât work, whereas it will.
M t/op/lvref.t
commit e74ac9c99763330558803db6e55dc04a1471e78e
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 27 22:03:25 2014 -0700
Add priv flags for the type of lvalue ref
M lib/B/Op_private.pm
M opcode.h
M regen/op_private
commit ac9692eed492062dc243035c72673707ba7bfa85
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 27 18:44:57 2014 -0700
lvref.t: To-do tests for array ref assignment
The evals are temporary. Some of the tests donât even make sense
with the evals; they are more placeholders and reminders for now
that tests.
M t/op/lvref.t
commit 858f800dd80c2dd350a9a723d3299de9c45f6f8b
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 27 14:17:09 2014 -0700
pp.c: Fold SvIV into S_localise_aelem_lval
All three callers were doing SvIV, so we can do it in one spot.
M pp.c
commit e8ef2bbce75a055b9c2a56b7b42d814ed1d982c3
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 27 14:15:50 2014 -0700
pp.c: Some branch prediction hints
M pp.c
commit 34b3c1865ae1b8fe7b8fba825cdd24abde442c07
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 27 14:15:00 2014 -0700
Assignment to hash element refs
M mg.c
M op.c
M pp.c
M t/op/lvref.t
commit 68baad8a8b678d5b847c73fbd8e3c0643320dabc
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 27 11:07:35 2014 -0700
pp.c: Consolidate some local aelem code
In the process, avoid a redundant av_fetch for \local$a[0]= and
\local($a[0])=.
M pp.c
commit c8fcc93c46156880c3a72c381307ae8acc3d70e9
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 27 10:49:46 2014 -0700
pp.c:pp_lvrefslice: Unused var
M pp.c
commit 20282fcdbeaf7db8dd3169bfd0eb030aaa6358f9
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 27 10:49:24 2014 -0700
\local $a[$ix] assignment
M pp.c
M t/op/lvref.t
commit d474673e407300661fb5912f48f67f1b1bdd9e73
Author: Father Chrysostomos <[email protected]>
Date: Fri Sep 26 10:40:19 2014 -0700
\@array[@slice] assignment
plus changes to the aelem tests to check rhs context.
I did \local @a[@s] at the same time, since I was practically copying
and pasting code from aslice (ok, not quite).
M op.c
M pp.c
M t/op/lvref.t
commit 284120e82f64fe32c9eda5c00833bdaf6efe6716
Author: Father Chrysostomos <[email protected]>
Date: Thu Sep 25 22:13:33 2014 -0700
pp.c: Dodge compiler warning
M pp.c
commit 8f3aed60219a5f9d1aec2a8b79f7928f45299d0c
Author: Father Chrysostomos <[email protected]>
Date: Thu Sep 25 22:10:39 2014 -0700
lvrefslice gets OPpLVAL_INTRO
M lib/B/Op_private.pm
M opcode.h
M regen/op_private
commit 314e13a436aeea1e91ff09d4d9a5fad7f2b9fcb9
Author: Father Chrysostomos <[email protected]>
Date: Thu Sep 25 22:08:15 2014 -0700
Add lvrefslice op type
M ext/Opcode/Opcode.pm
M opcode.h
M opnames.h
M pp.c
M pp_proto.h
M regen/opcodes
commit 508585a475516dc65beb4a1cc84af1ffe11b9113
Author: Father Chrysostomos <[email protected]>
Date: Thu Sep 25 20:34:11 2014 -0700
Assignment to array elem refs
M lib/B/Op_private.pm
M mg.c
M op.c
M opcode.h
M pp.c
M regen/op_private
M t/op/lvref.t
commit f2d0e777f145c6a2ff9b2b2a1a72b5be335bb91f
Author: Father Chrysostomos <[email protected]>
Date: Thu Sep 25 16:10:14 2014 -0700
\local $scalar assignment
M op.c
M pp.c
M t/op/lvref.t
commit 476413d776e599e03d6686cc48a9b258624dc098
Author: Father Chrysostomos <[email protected]>
Date: Thu Sep 25 13:10:22 2014 -0700
Make \($x,$y) assignment work
This applies to \ with multiple kids (refgen). Up till now,
op_lvalue_flags only handled srefgen (single refgen).
Before I was converting srefgen to lvref and nulling the kid op:
srefgen
ex-list
rv2sv
gv
became:
lvref
ex-list
ex-rv2sv
gv
Now Iâm converting the kid instead and nulling the srefgen:
ex-srefgen
ex-list
lvref
gv
so that the same code can apply to refgen:
refgen
ex-list
pushmark
rv2sv
gv
rv2sv
gv
becomes
ex-refgen
ex-list
ex-pushmark
lvref
gv
lvref
gv
M op.c
M t/op/lvref.t
M t/op/ref.t
commit 795ab9b0ccb27e69da8760e3eea42f8877952b46
Author: Father Chrysostomos <[email protected]>
Date: Thu Sep 25 08:19:13 2014 -0700
List assignment to lexical scalar refs
\($x,$y)=... does not work yet, but \(my $x) and (\$x, \$y) do.
M lib/B/Op_private.pm
M mg.c
M op.c
M opcode.h
M pp.c
M regen/op_private
M t/op/lvref.t
commit c64fb502c200c6df111b4e6d4ee9d1871fbc31c3
Author: Father Chrysostomos <[email protected]>
Date: Wed Sep 24 22:13:01 2014 -0700
Fix assertion failure with ... ? \$a : \$b = ...
Because both branches have a srefgen, this was treated as a scalar
reference assignment, which is usually handled by refassign. But
refassign expects the thing on the lhs to be srefgen, not a cond_expr.
The logic for propagating the assignment type must not propagate the
âASSIGN_REFâ type outward. Only list context propagates outward.
Eventually, this will be handled by sassign and the cond_expr will
have lvref kids. (Itâs too complicated for refassign, which is the
optimised form that combines \ and = into one op.)
For now, this commit just fixes the assertion failure without making
this type of assignment work yet.
M op.c
M t/op/lvref.t
commit ef401757a022a924025cc0b3ede066df1d91fc45
Author: Father Chrysostomos <[email protected]>
Date: Wed Sep 24 16:21:03 2014 -0700
op.c: Apply spair optimisation to \% \@ \&
The âspairâ (scalar/single pair) optimisation applies to a few operat-
ors for which there are actually pairs of ops, one for scalars or sin-
gle items, the other for lists. refgen is one of them.
When taking references, hashes, arrays and subroutines are single
items, just like scalars, so they can go through the âsingleâ code and
benefit, too.
refassign will also benefit from this, as \@a = [] (not yet imple-
mented) should provide scalar context to the right-hand side, and this
avoids the need for special cases (because srefgen with the initial s
provides scalar context).
(This optimisation could have applied to aggregates passed to cho(m)p,
but it results in incorrect messages like âUninitialized value in sca-
lar chompâ for chomp @_, so Iâve left it for now.)
M op.c
M t/lib/warnings/op
commit 15d106893d449a9c26c5840a7677f9537c38ec5f
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 28 22:50:57 2014 -0700
Use âCanât modify reference to...â for refassign, too
M op.c
M t/op/lvref.t
commit fa8870024682ae39c723078dda359de0b59435c4
Author: Father Chrysostomos <[email protected]>
Date: Wed Sep 24 14:22:38 2014 -0700
op.c: diag_listed_as for âCan't modify refâ
M op.c
commit 9ca71ffbd207599c820e7873699de0f251f30c69
Author: Father Chrysostomos <[email protected]>
Date: Wed Sep 24 14:20:48 2014 -0700
lvref.t: Test âCan't modify reference to...â
M t/op/lvref.t
commit 46693b73d5480ce9145d8f793ba27921db856330
Author: Father Chrysostomos <[email protected]>
Date: Wed Sep 24 13:22:49 2014 -0700
List assignment to package scalar ref
\ on the lhs returns a special magical scalar with set-magic that does
the aliasing.
I considered having a separate abind op that would be like aassign,
but different. However, I realised that for ($x, \$y) = ... to work
it would have to duplicate all of aassign. So I went with the sim-
pler magic implementation.
M mg.c
M op.c
M pp.c
M t/op/lvref.t
commit c0b6691e8f80248cbd90a2176c90aad40db7823c
Author: Father Chrysostomos <[email protected]>
Date: Wed Sep 24 01:45:47 2014 -0700
Capitalise magic descriptions consistently
M mg_raw.h
M mg_vtable.h
M pod/perlguts.pod
M regen/mg_vtable.pl
commit 265b96aaeb5923390b04d4c2fca97dd058d91522
Author: Father Chrysostomos <[email protected]>
Date: Wed Sep 24 01:42:30 2014 -0700
Add lvref magic type
I just couldnât resist using the backslash for the character, even
though I had to tweak mg_vtable.pl to make it work.
M embed.fnc
M embed.h
M mg.c
M mg_names.c
M mg_raw.h
M mg_vtable.h
M pod/perlguts.pod
M proto.h
M regen/mg_vtable.pl
commit aa755001ea6f190fcf838bde867b47dd9edc38f4
Author: Father Chrysostomos <[email protected]>
Date: Wed Sep 24 00:58:23 2014 -0700
Add lvref op type
M ext/Opcode/Opcode.pm
M lib/B/Op_private.pm
M opcode.h
M opnames.h
M pp.c
M pp_proto.h
M regen/opcode.pl
M regen/opcodes
commit 30bff99396f7e1a9a3400e37a9f44c8d2913cec7
Author: Father Chrysostomos <[email protected]>
Date: Wed Sep 24 00:19:33 2014 -0700
lvref.t: More parenthesized scalar ref tests
These tests are actually nonsensical with the evals, but they currently
cause syntax errors. Ultimately they are placeholders and reminders,
so it doesnât matter.
M t/op/lvref.t
commit ad28a58322169b6fab907533f52e21dbb000c424
Author: Father Chrysostomos <[email protected]>
Date: Tue Sep 23 22:33:09 2014 -0700
lvref.t: Some assignments with mixed lhs
M t/op/lvref.t
commit 5eddd6d62805471409f066a1bad6e4670186d467
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 21 23:11:32 2014 -0700
Implement \my $x = ...
M lib/B/Op_private.pm
M op.c
M opcode.h
M pp.c
M regen/op_private
M t/op/lvref.t
commit 0283961462c8bd5c5d4d6ec657f89fff878d2921
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 21 16:04:23 2014 -0700
lvref.t: Test \$foo = \*bar
M t/op/lvref.t
commit 817228225671340000962a55186abdf12ccf579a
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 21 15:04:20 2014 -0700
lvref.t: To-do tests for foreach \
M t/op/lvref.t
commit 1c2e8647a5a191e5013aedbe84d78e76cb17865b
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 21 14:58:15 2014 -0700
lvret.t: To-do tests for \local $scalar=
M t/op/lvref.t
commit ef88ddfbb87d9047619a4952772318b2bc9a2bde
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 21 14:43:37 2014 -0700
When making lex alias, donât free old var too soon
It could be exactly the same variable, and the reference on the rhs
could be weak:
use feature ":all";
use Scalar::Util 'weaken';
my $a;
weaken($r = \$a);
\$a = $r;
__END__
Lvalue references are experimental at - line 5.
Segmentation fault: 11
M pp.c
M t/op/lvref.t
commit 023830221e5e370d037367bbe64a5a728b731679
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 21 14:23:00 2014 -0700
lvref.t: To-do test for PADSTALE handling
M t/op/lvref.t
commit 787ad9c4e6de6ddac582cac1561f249af0b65ebb
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 21 13:56:01 2014 -0700
Simple package scalar lvalue refs
\$::x = ... works, but not \local $x yet.
M embed.fnc
M embed.h
M op.c
M pp.c
M proto.h
M sv.c
M t/op/lvref.t
commit 22b0556f9a56990b779ef16193b905d1cb090684
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 21 12:29:30 2014 -0700
lvref.t: Tests for error massages
M t/op/lvref.t
commit f166dd5ac2490dd70c21d4e7b5ac39ce6dd8b185
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 21 11:19:41 2014 -0700
lvref.t: Remove to-do and eval from passing test
This one passing test was failing inside the eval because closures
are not yet supported. (Thatâs why I added explicit closure tests
in the previous commit.)
M t/op/lvref.t
commit a352b78dda070c8dc567042a967e781ff849e90e
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 21 11:16:33 2014 -0700
lvref.t: To-do tests for closures
M t/op/lvref.t
commit 00a2c6287cd91990ba0f556934d7ab95de264e75
Author: Father Chrysostomos <[email protected]>
Date: Sun Sep 21 00:22:41 2014 -0700
Document lvalue ref diagnostics
Also, use âa SCALAR referenceâ rather than âa scalar referenceâ, to
match the style used elsewhere.
M pod/perldiag.pod
M pp.c
commit 27c9e23639afe6eb8e45278b505f4ac2dafcec7b
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 20 14:49:04 2014 -0700
First stab at lexical scalar aliases
No \my$x= yet. Only my $x; \$x =....
It does not work properly with variables closed over from outside;
hence, all the to-do tests fail still, since they do the assign-
ment in evals.
But this much works:
$ ./miniperl -Ilib -Mfeature=:all -e 'my $m; \$m = \$n; warn \$m; warn \$n'
Lvalue references are experimental at -e line 1.
SCALAR(0x7fa04b805510) at -e line 1.
SCALAR(0x7fa04b805510) at -e line 1.
M embed.fnc
M embed.h
M op.c
M opcode.h
M pp.c
M proto.h
M regen/opcodes
M scope.c
commit 0ee0754486f5cabb019e5d5ebc1fec96c5c93abc
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 20 23:33:26 2014 -0700
op.c: In newBINOP, set up op_last before CHECKOP
Set up op_last pointers in newBINOP before calling the op-specific
ck_* routine.
That way, since this op sub-tree is well-formed from the outset, we
donât need as much fix-up code elsewhere to account for the case where
the binop has been embedded inside a larger op tree (state var ini-
tialisation).
The repetition operator is an odd bird. If the lhs is a list of one
item, it is effectively an unop, though still of class binop. Though
op_last would usually point to the last immediate child, it ended
up null instead. B::Deparse was written to expect that, so letâs
keep it that way by setting it to null in ck_repeat, now that the
last = first->sibling assignment in newBINOP (which used to do it)
happens earlier.
M op.c
commit f9d727e8a382e1985ff8b04ed6518bd4565ad465
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 20 13:48:48 2014 -0700
Increase $Opcode::VERSION to 1.29
M ext/Opcode/Opcode.pm
commit 24812b54c83cc602fa530c62591fbcc05de3f0a7
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 20 13:47:58 2014 -0700
Add refassign op type
M ext/Opcode/Opcode.pm
M lib/B/Op_private.pm
M opcode.h
M opnames.h
M pp.c
M pp_proto.h
M regen/opcodes
commit f5019c6669edf171e12fb543f0c17ab8f9c0b206
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 20 13:27:47 2014 -0700
op.c:ck_spair: Remove redundant checks
Neither the av nor the hv ops have the OA_RETSCALAR flag, so these
checks are unreachable.
These checks go all the way back to a0d0e21e (perl 5.000).
M op.c
commit 4fdf7356c28b8bbffb0158c6b41beb7addb47a0a
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 20 11:46:14 2014 -0700
To-do tests for scalar lvalue refs
M MANIFEST
A t/op/lvref.t
commit c5035a88e4c13a0675c0b71790d3bd7b9e75d3e1
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 20 11:16:08 2014 -0700
Increase $warnings::VERSION to 1.27
M lib/warnings.pm
M regen/warnings.pl
commit 7f6bf8876cc8d3d73075c81f5bb6ea340d1a8391
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 20 11:15:18 2014 -0700
Add experimental::lvalue_refs warnings category
M lib/warnings.pm
M regen/warnings.pl
M warnings.h
commit f363c9b5ea6971cb244c240f46458e0ef86d8107
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 20 11:13:58 2014 -0700
Increase $feature::VERSION to 1.38
M lib/feature.pm
M regen/feature.pl
commit 4b674d273f14812d246f98617605dd145a7f7248
Author: Father Chrysostomos <[email protected]>
Date: Sat Sep 20 11:12:37 2014 -0700
Add lvalue_refs feature feature
M feature.h
M lib/feature.pm
M regen/feature.pl
-----------------------------------------------------------------------
--
Perl5 Master Repository