sv.c: Make sv_force_normal always croak on ro SVs
authorFather Chrysostomos <sprout@cpan.org>
Sat, 22 Jun 2013 23:14:24 +0000 (16:14 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 23 Jun 2013 06:16:41 +0000 (23:16 -0700)
commitc72a4eedff166d5a772fd687231c39fd8ea270c6
tree0779c8d6608b657bbebfc48f273ca91ef5cac83c
parent0bcd71eb9262d2c1c3870898d817b51f08f361a6
sv.c: Make sv_force_normal always croak on ro SVs

Commit 8990e30710 (perl 5.0 alpha 6) changed several SvREADONLY checks
to apply only to run time.  This is convenient when it comes to modify-
ing op trees, whose SVs are, for the most part, marked read-only.

But several pieces of code that relied on this were buggy when dealing
with constants created by â€˜use constant’.  To make it harder to add
such bugs, I have changed all code that relies on this exception and
am now removing it.
sv.c