[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Son of Lua - Sol
- From: "Russell Y. Webb" <rw20@...>
- Date: Wed, 31 Jan 2001 13:59:01 -0800
My patches were to 3.0 and not really extensively tested. I had the luxury
of using Lex and Yak back then.
The trick was to do some conditional check upon write to globals and make
sure that write access was on for them. If writing to globals is rare (as
it should be usually) then the performance hit was small.
> From: Edgar Toernig <firstname.lastname@example.org>
> Reply-To: email@example.com
> Date: Wed, 31 Jan 2001 21:15:51 +0100
> To: Multiple recipients of list <firstname.lastname@example.org>
> Subject: Re: Son of Lua - Sol
> "Russell Y. Webb" wrote:
>> b = 10
>> c = 1
>> function test(x)
>> global c;
>> b = "this does not change the global";
>> c = "but this does";
>> print(10); -- this uses the read access to globals
> I thought about this myself. But it complicates the parser a lot.
> (Especially: a,b,c,d=foo4() where a and d are new locals, b an old
> local and c a global). And you may get some strange semantics.
> Are your patches anywhere to have a look at?
> Ciao, ET.