[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question if bug: declaration of an associative array within a functi
From: |
Chet Ramey |
Subject: |
Re: Question if bug: declaration of an associative array within a function |
Date: |
Tue, 15 Jun 2010 23:27:12 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1 |
On 6/15/10 5:22 PM, Greg Wooledge wrote:
> `declare' has the side effect of making things local to a function, if
> it is used within a function. There is currently no way to create a
> global associative array while inside a function; you'd have to do it
> outside the function.
>
> Chet has said, I think, that he might consider a `global' (or similar)
> keyword at some point in the future.
Actually, it would be a `-g' option to declare, and that will probably
get in there.
Chet
--
``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/