bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] sym_constant not working properly


From: Andrew J. Schorr
Subject: Re: [bug-gawk] sym_constant not working properly
Date: Mon, 17 Dec 2012 21:00:51 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Dec 17, 2012 at 08:51:57PM -0500, Andrew J. Schorr wrote:
> Can you please test something for me: if you use sym_constant instead
> of sym_update, does it work properly?  I find that my program is
> still able to modify the variable even though it was configured
> to be a constant.  The code that sets var_assign to set_constant doesn't seem
> to be having any impact on what happens.

It seems as if sym_constant works properly when called from a
extension module init_func, but not when it's called from an extension
function.  In both cases the call succeeds, but when set from inside
an extension function, there is nothing preventing user awk code
from updating the value.

Arnold -- do you have any idea what's going on here?  It looks like a bug
to me.

Regards,
Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]