| Store | Cart

Re: [perl #126170] Assertion failed: S_finalize_op (op.c:2562)

From: Aristotle Pagaltzis <paga...@gmx.de>
Fri, 9 Oct 2015 10:35:52 +0200
* Dave Mitchell <dav...@iabyn.com> [2015-10-08 16:55]:
> or whether such usage exists in the wild?

Fiddling around with grep.cpan.me I found no use on CPAN whatsoever.

There is some very minor use of `sub BEGIN` and some even more minor use
of the empty prototype on BEGIN blocks, but I did not find even so much
as an empty attribute list on any of them, let alone actual attributes.

> Can anyone think or a reason why special blocks should be allowed> attributes

I think it should be an error. But that’s in a vacuum. It has been
possible to write them, for a long time, so the question is whether we
gain anything but outlawing them now. The obvious answer is we fix the
assert crash. But wait, there’s an assert crash, so *can* this syntax
even work at all? If not, then we can trivially outlaw it because it
doesn’t work and can’t be used anyway. If yes, the question is again,
given the circumstances in which it works, their likelihood, etc, what
do we gain from outlawing it?

My expectation is that “just kill it” is not particularly questionable,
but I don’t feel I am firm enough on the answers to actually take that
stance.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

Recent Messages in this Thread
Brian Carpenter (via RT) Sep 25, 2015 02:41 am
Dave Mitchell Oct 08, 2015 02:51 pm
Aristotle Pagaltzis Oct 09, 2015 08:35 am
Aaron Crane Nov 01, 2015 05:23 pm
Messages in this thread

Next post: Hi!