bug-bash
[Top][All Lists]
Advanced

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

Re: Global variable modification by nameref chain


From: Chet Ramey
Subject: Re: Global variable modification by nameref chain
Date: Mon, 23 May 2016 13:42:06 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.1.0

On 5/23/16 11:32 AM, Grisha Levit wrote:
> 
> On Sun, May 22, 2016 at 10:08 PM, Chet Ramey <chet.ramey@case.edu
> <mailto:chet.ramey@case.edu>> wrote:
> 
>     Should the assignment work?  I'm considering changing the assignments to
>     work more like the references.
> 
> 
> I think it would be useful for the assignment to work, as that allows
> functions to take variable names as arguments without worrying about name
> collisions.  Would it also be possible to have the reference resolve the
> same way?  If not, then I suspect consistency in assignments and references
> would be preferable.

I don't like the fact that variable binding simply ignores nameref loops
and treats them the same as the variable not being found.  That's the
difference here.


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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