Hi!

----

Can anyone explain why the code below behaves differently (in
ast-ksh.2013-05-24 on SuSE 12.3/AMD64/64bit) when function "f" has an
own scope ? Are function-local variables not subject to be part of a
namespace ? What will happen to function-static variables vs.
namespaces ?
-- snip --
$ ksh -c 'f() { namespace nam1 { integer i2=5 ; } ; print ${.nam1.i2} ; } ; f'
5
$ ksh -c 'function f { namespace nam1 { integer i2=5 ; } ; print
${.nam1.i2} ; } ; f'

-- snip --

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to