|
From: | Linda Walsh |
Subject: | Re: inconsistency with "readonly" and scope |
Date: | Sun, 15 Apr 2012 13:00:17 -0700 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666 |
Andreas Schwab wrote:
Maarten Billemont <lhunath@lyndir.com> writes:On 15 Apr 2012, at 03:21, Chet Ramey wrote:If I declare a variable readonly at global scope, I wouldn't expect it to be overridden by some local namespace pollution.I think that's fine; in the local context, your variable has a different meaning; it's another variable with the same name.If the variable is exported the local variable overrides the exported value. Andreas.
If the local variable is exported to be 'global', then how is that a local variable?
[Prev in Thread] | Current Thread | [Next in Thread] |