perl5
perl5 copied to clipboard
class.c: clean up any state if we don't finish the class
Fixes #22169
@leonerd, could you please review this p.r. from @tonycoz? Thanks.
@tonycoz do you have a feeling for whether or not we're going to be able to merge this pull request into blead in this dev cycle or not? If not, then I recommend we label it 'defer-next-dev'.
It's not going anywhere until @leonerd looks at it
@leonerd Ping?
I haven't read in detail the large changes to
Perl_class_seal_stash()but I presume this is mostly just a re-indentation exercise with no change besides invoking the new cleanup function in the failure case.
Yes, Except for some re-wrapping it's just indentation, the github diff viewer has an option to ignore whitespace which is handy for changes like this:
I have read the new
.tfile about four times and I imagine it's supposed to invoke a compiletime error in theeval STRbut I can't see what the error is supposed to be. Could it be made clearer there?
There's no closing }, I'll add a comment.
Squashed the two commits since it didn't seem worth messing with adding to the first commit and dealing with the conflicts in moving the code to the new function.