[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ast-developers
Subject:    [ast-developers] function in namespace creates array, array created in global namespace?
From:       Irek Szczesniak <iszczesniak () gmail ! com>
Date:       2013-08-26 11:57:53
Message-ID: CALnxO54xTh_=3crK=SP4-cbX8bnnEbCzhDfDwp_fycbo7KzDKQ () mail ! gmail ! com
[Download RAW message or body]

namespace question: Shouldn't the example below create the variable
'ns_a2' within the namespace a.b?

ksh -c 'namespace a.b { typeset -a ns_a1=(4 5 6 ) ; fc() { typeset -a
ns_a2=( 7 8 9 ) ; } ; } ; typeset -a a=( 1 2 3 ); .a.b.fc ; typeset
-a'
a=(1 2 3)
ns_a2=(7 8 9)

Irek
_______________________________________________
ast-developers mailing list
ast-developers@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-developers
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic