"Brent Dax" <[EMAIL PROTECTED]> writes:

> Garrett Goebel:
> # > my int ($pre, $in, $post) is constant = (0..2);
> #
> # Means that you are asking for compile time optimizations, and
> # agreeing not
> # to bless references to, or ascribe run-time properties to
> # those scalars. So
> # we've already got variables with constant values.
> #
> # I guess my question is, does the compile time optimization
> # for the above
> # case imply that you can't later do:
> #
> #   $pre := $post;
> #
> # If it doesn't then I'll cease and desist... If it does, then wouldn't:
> #
> #   my scalar $foo is constant = 'bar';
> #
> # be the 'type' general way to make both a scalar variable
> # binding and its
> # value constant?
> 
> Could you do C<%MY::{'$pre'} is constant> to lock the symbol table
> entry?

Ooh... I like that thought. Maybe C<%MY::{'$pre'} is final>?

-- 
Piers

   "It is a truth universally acknowledged that a language in
    possession of a rich syntax must be in need of a rewrite."
         -- Jane Austen?

Reply via email to