bug-bash
[Top][All Lists]
Advanced

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

Re: unset does not act as expected on namerefs


From: Chet Ramey
Subject: Re: unset does not act as expected on namerefs
Date: Sat, 06 Jun 2015 12:47:20 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 6/2/15 11:37 AM, Greg Wooledge wrote:

> Ksh's nameref is completely different.  With one of ksh's two different
> kinds of functions, you actually CAN use ksh nameref to pass a value
> back to the caller without variable name collisions.

In my opinion, the most interesting thing about ksh93's namerefs is that
they change ksh to allow dynamic scoping and give funtions access to a
calling function's local variables.  ksh93 doesn't normally allow that,
and David Korn was very vocal about the superiority of ksh93's static
scoping.

-- 
``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]