On Tue, Jul 16, 2013 at 11:31 PM, Roland Mainz <[email protected]> wrote: > The following testcase should test (with ast-ksh.2013-06-28 on SuSE > 12.3/AMD/64/64bit) the ".unset" discipline on an (1D) indexed array of > types but triggers a row of valgrind hits: [snip] > 2nd issue is that the testcase should print "gone 1" but instead prints this: > -- snip -- > $ ksh -c 'function f { x_t -a x ; (( x[4].i=1 )) ; } ; typeset -T > x_t=( integer i=0; function unset { printf "gone %d\n" _.i ; } ) ; f' > gone 1 > gone 0 > -- snip --
Erm... ignore that comment. I forgot that the ".unset" discipline is called twice - once per array element and once for the array variable itself (sorry... my fault... but the "valgrind" hits are still real issues). ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) [email protected] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;) _______________________________________________ ast-developers mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-developers
