Hi!

----

The following testcase seems to fail in ast-ksh.2009-06-22:
-- snip --
typeset -T benchmark_t=(
        integer num_iterations
)

function do_benchmarks
{
        nameref tst=b
        integer num_iterations
        float iteration_factor=1.
        
        (( num_iterations= int(tst.num_iterations * iteration_factor) ))
        printf "%d\n" num_iterations
        return 0
}

benchmark_t b
b.num_iterations=5

do_benchmarks
-- snip --

IMO this should return "5" but returns "0". Somehow it looks that
something in the arithemtric expression is going wrong when variable
"tst" is a type accessed via a nameref...

----

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]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to