Re: cvs commit: parrot/classes env.pmc

2003-07-19 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > Rather simple stuff like your code calls into a C library via the NCI > interface, and that C code does a setenv(). Ah. There is always one more possibility ;-) > The cost of fetching isn't > much, and the cache just isn't worth the hassle. Ok. Then

Re: cvs commit: parrot/classes env.pmc

2003-07-19 Thread Dan Sugalski
At 1:31 PM +0200 7/19/03, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: At 8:17 PM +0200 7/13/03, Leopold Toetsch wrote: I think one Env PMC ought to be enough. And that one may have e.g. an Iterator ettached, which simplest is done by deriving it from an hash like PMC. Potentia

Re: cvs commit: parrot/classes env.pmc

2003-07-19 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 8:17 PM +0200 7/13/03, Leopold Toetsch wrote: >> >>I think one Env PMC ought to be enough. And that one may have e.g. an >>Iterator ettached, which simplest is done by deriving it from an hash >>like PMC. > Potentially, yes. We still ought not cache, si

Re: cvs commit: parrot/classes env.pmc

2003-07-14 Thread Dan Sugalski
At 8:17 PM +0200 7/13/03, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: At 10:09 AM +0200 7/11/03, Leopold Toetsch wrote: > pmclass Env extends default { What do you think of: - Env extends PerlHash Thought about it, but I couldn't think of a reason why. %ENV{'something'),

Re: cvs commit: parrot/classes env.pmc

2003-07-13 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 10:09 AM +0200 7/11/03, Leopold Toetsch wrote: >> > pmclass Env extends default { >> >>What do you think of: >>- Env extends PerlHash > Thought about it, but I couldn't think of a reason why. %ENV{'something'), keys(%ENV), iterating over %ENV ...

Re: cvs commit: parrot/classes env.pmc

2003-07-11 Thread Dan Sugalski
At 10:09 AM +0200 7/11/03, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: Log: Accessing env variables is a nice thing Yep. Good idea. It was about time. :) And trivial, as too much of the pending stuff has been. > pmclass Env extends default { What do you think of: - Env

Re: cvs commit: parrot/classes env.pmc

2003-07-11 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > Log: > Accessing env variables is a nice thing Yep. Good idea. > pmclass Env extends default { What do you think of: - Env extends PerlHash - interpreter has an empty env variable created at interpreter creation - on first access to it, the hash ge