Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: 3288b2435217a1358a3bf5aab3cdfa995bd676a3
https://github.com/Perl/perl5/commit/3288b2435217a1358a3bf5aab3cdfa995bd676a3
Author: Paul "LeoNerd" Evans <[email protected]>
Date: 2022-12-17 (Sat, 17 Dec 2022)
Changed paths:
M embed.fnc
M embed.h
M op.c
M proto.h
Log Message:
-----------
Add `forbid_outofblock_ops()` to op.c
Adds a new function to statically detect forbidden control flow out of a
block.
Commit: abf573d1658ed41e29b6dae390645908838b313b
https://github.com/Perl/perl5/commit/abf573d1658ed41e29b6dae390645908838b313b
Author: Paul "LeoNerd" Evans <[email protected]>
Date: 2022-12-17 (Sat, 17 Dec 2022)
Changed paths:
M op.c
M pod/perldelta.pod
M t/lib/croak/op
M t/op/defer.t
M t/op/try.t
Log Message:
-----------
Detect forbidden flow at compiletime of `defer` or `finally`
Using the new `forbid_outofblock_ops()`, many kinds of forbidden control
flow out of a `defer` or `finally` block can be detected statically with
this function by analysing the optree, rather than leaving it until
runtime when the attempt is actually made.
Compare: https://github.com/Perl/perl5/compare/63913cc7c64b...abf573d1658e