On Mon, Sep 18, 2000 at 04:04:56PM +0100, Simon Cozens wrote:
> On Mon, Sep 18, 2000 at 10:51:52AM -0400, John Porter wrote:
> > I would think that if it could be done at all,
> > it would only be in extension (formerly XS) code.
>
> Why? I don't want to go to C just to add a flag to a variable. That smacks of
> making easy things hard and hard things impossible. You'll note that that
> isn't the motto of Perl.
I'll have to go with John here. Mucking about with variable attribute
flags (with the exceptions of the fixed set which have been proposed)
falls firmly into the "hard but possible" realm of things. It should
be done in XS code.
Also, just being able to tack flags onto a variable means each
variable (that has a flag) would have to carry around a hash!
Anyhow, this doesn't mean someone couldn't write a module to do it and
then you use that.
--
Michael G Schwern http://www.pobox.com/~schwern/ [EMAIL PROTECTED]
Just Another Stupid Consultant Perl6 Kwalitee Ashuranse
"You are wicked and wrong to have broken inside and peeked at the
implementation and then relied upon it."
Tom Christiansen in <31832.969261130@chthon>