Re: Accessing a variable's attributes (was Re: RFC 241 (v1) ...)

2000-10-03 Thread John Porter
> Michael G Schwern wrote: > > > Also, just being able to tack flags onto a variable means each > > variable (that has a flag) would have to carry around a hash! No; it has to carry around a vtbl (or vtbl-like thing). User-level attributes are (or should be :-) accessor methods to some underlyin

Re: Accessing a variable's attributes (was Re: RFC 241 (v1) ...)

2000-10-02 Thread David L. Nicol
Michael G Schwern wrote: > Also, just being able to tack flags onto a variable means each > variable (that has a flag) would have to carry around a hash! Or it could mean that every new flag is associated with a hash of names of things for which it is set -- in which case $something:at

Re: Accessing a variable's attributes (was Re: RFC 241 (v1) ...)

2000-09-18 Thread Dan Sugalski
At 01:46 PM 9/18/00 -0400, Michael G Schwern wrote: >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. > > > > W

Re: Accessing a variable's attributes (was Re: RFC 241 (v1) ...)

2000-09-18 Thread Simon Cozens
On Mon, Sep 18, 2000 at 01:46:57PM -0400, Michael G Schwern wrote: > 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 X

Re: Accessing a variable's attributes (was Re: RFC 241 (v1) ...)

2000-09-18 Thread Michael G Schwern
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.

Re: Accessing a variable's attributes (was Re: RFC 241 (v1) ...)

2000-09-18 Thread John Porter
Simon Cozens wrote: > > (The deadline for collecting ideas passed two weeks ago. Why is this all > still going on?) Because there are still many worthy ideas which have not surfaced yet. Which is the higher priority? -- John Porter We're building the house of the future together.

Re: Accessing a variable's attributes (was Re: RFC 241 (v1) ...)

2000-09-18 Thread Dan Sugalski
At 04:04 PM 9/18/00 +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 >ma

Re: Accessing a variable's attributes (was Re: RFC 241 (v1) ...)

2000-09-18 Thread Simon Cozens
On Mon, Sep 18, 2000 at 10:51:52AM -0400, John Porter wrote: > Are all the possible attributes going to be predefined, or can the > user define new ones? The user should be able to do anything they damn well like. This is, allegedly, Perl, which means it's about making it easy to do what the pro

Accessing a variable's attributes (was Re: RFC 241 (v1) ...)

2000-09-18 Thread John Porter
Peter Scott wrote: > > How about an attribute for hashes: > > my %foo : fixed; Has anyone talked about the ability to access the attributes attached to a variable? Are all the possible attributes going to be predefined, or can the user define new ones? I would think that if it coul