Re[4]: Mutable Bytes

Lenard Lindstrom <[email protected]> Tue, 27 Jul 2004 08:41:49 -0700 (Pacific Daylight Time)
Newsgroups gmane.comp.lang.prothon.user
Message-ID <Mahogany-0.66.0-4294580231-20040727-095541.00@pop3.norton.antivirus>
On Mon, 26 Jul 2004 21:35:03 -0700 Mark Hahn <[email protected]> wrote:

> 
> > > Another change I am mentioning in my talk is on my to-do list.  The 
> > > scope object for functions will now be the actual function object 
> > > itself.  So all local variables will be attributes of the function 
> > > also.  This means every attribute like fParams_ better have the 
> > > trailing underbar. :-)
> > > 
> > What if the function is called recursively or from more than 
> > one thread at the same time?
> 
> Each call gets it's own unique shallow copy of the function so it would
> start fresh with just the fParams_, name_, prevScope_, and actual params.
> Functions have been copied when called for some time.  Greg asked why and I
> cannot remember.  I'm trying to find the old messages.
> 
Sorry. I misread you message. I thought the copy was related to the garbage
collector scheme. Further messages show the copy is made only at def time and
that current function object will be split into a reduced function object and
a code object.

Lenard Lindstrom