[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unable to dereference function-local nameref to global variable of s
From: |
Chet Ramey |
Subject: |
Re: Unable to dereference function-local nameref to global variable of same name |
Date: |
Fri, 12 Aug 2016 13:43:58 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 8/12/16 11:30 AM, Andreas Kusalananda Kähäri wrote:
> My workaround is currently to slightly obfuscate the name of the local
> nameref previously called "var" in each function so that their names
> won't clash within the library and so that it's less likely that they
> clash with global variables in the shell.
Yes, a naming convention that provides `enough' uniqueness is a good
workaround.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
signature.asc
Description: OpenPGP digital signature