>
> 'use constant FOO => "foo"' could add some magic to never let FOO
> being redefined (not a bad coice for a constant).
>
> -- Johan

I like this idea best (for now). Perhaps 'constant sub foo' or 'sub
foo:constant'? By doing it that way, it is apparent to both Perl and the
developer that this is an intentional candidate for optimization, and that
redefining it will break it ("Error: attempt to redefine a constant
subroutine.")

Grant M.

Reply via email to