>
> '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.
- Deoptimizations Bryan C . Warnock
- Re: Deoptimizations Simon Cozens
- RE: Deoptimizations Brent Dax
- Re: Deoptimizations Bryan C . Warnock
- RE: Deoptimizations Brent Dax
- Re: Deoptimizations Johan Vromans
- Re: Deoptimizations Wizard
- Re: Deoptimizations Ken Fox
- Re: Deoptimizations Bryan C . Warnock
- Re: Deoptimizations Ken Fox
- Re: Deoptimizations Dan Sugalski
