Commit 1b218d2
committed
we aren't going to run late INIT blocks, so don't save them
I was looking over #1674, where it was suggested that late INIT blocks
behave like BEGIN, and Larry approved of that (25 years ago).
But history has moved on, we have 25 years of code developed under the
current behaviour of INIT and I suspect such a change is more likely
to break existing code than fix anything.
But looking at the code in S_process_special_blocks() we do still push
the CV onto PL_initav, even though that CV will never be called.
So don't push the CV if it's too late to call it.1 parent 5b9aabc commit 1b218d2
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11716 | 11716 | | |
11717 | 11717 | | |
11718 | 11718 | | |
11719 | | - | |
| 11719 | + | |
11720 | 11720 | | |
11721 | 11721 | | |
11722 | 11722 | | |
11723 | | - | |
| 11723 | + | |
| 11724 | + | |
| 11725 | + | |
| 11726 | + | |
| 11727 | + | |
| 11728 | + | |
| 11729 | + | |
11724 | 11730 | | |
11725 | 11731 | | |
11726 | 11732 | | |
| |||
0 commit comments