Hi!

----

The following testcase shows a problem with compound variable
initalisation when one of the members accepts a value from a type
discipline function:
-- snip --
typeset -T foo_t=(
        float a=2.
        float b=1.
        function diff
        {
                printf "%a\n" "(_.a-_.b)"
                return 0
        }
)

foo_t sw

compound output=(
        integer one=1
        integer two=2
        float mydiff=sw.diff
        float end=.314
)

print -v output
-- snip --

When I run this test with ast-ksh.2009-06-22 the output misses the
variable "end", e.g. it prints:
-- snip --
(
        typeset -l -E mydiff=1
        typeset -l -i one=1
        typeset -l -i two=2
)
-- snip --
... while it _should_ print:
-- snip --
(
        typeset -l -E end=0.314
        typeset -l -E mydiff=1
        typeset -l -i one=1
        typeset -l -i two=2
)
-- 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]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to