On Thu, Oct 11, 2001 at 06:28:01PM -0600, chromatic wrote:
> On Thursday 11 October 2001 14:32, Tim Bunce wrote:
>
> > BTW, the Devel:: namespace isn't right for this. Devel:: is for
> > development-time tools, not run-time.
>
> That makes sense. What would you suggest?
>
> My first thought was constant::flags, but that's the pragma namespace.
> Something like Constant::Resolve would be okay, but it would create a new
> top-level namespace.
Actually I think I'd prefer this functionality patched into constants.pm.
It's small and could be hooked in with almost no overhead via the
code that catches invalid names.
use constant 'PI:resolve' => 3;
The mechanism could be extended to enable setting of any sub attributes
(ala perl6).
Tim.