Bill Allombert on Wed, 31 May 2006 17:17:22 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: What happened to 'local'?


On Wed, May 31, 2006 at 04:45:12PM +0200, Ottavio G. Rizzo wrote:
> Hallo,
> 
> I just installed 2.3.0, and I realized that the gp function 'local'
> disappeared.
> 
> It appears to me that 'local' is still needed:
> 
> ? a=1
> %23 = 1
> ? test(x)={a=x+1;return(a)}
> ? test(12)
> %24 = 13
> ? a
> %25 = 13
> 
> 
> Was I looking in the wrong place, there's something I don't understand,
> or the function was just left out?

Hello Ottavio,

local() still exists (and works) but someone reported to me a similar
problem but I do not have details. Maybe it is a compiler bug.

Could you provide us with the gp banner ?

What exactly is the symptom of the problem ?
Results %23, %24 and %25 above are correct.

Cheers,
Bill.