Discussion:
[ast-developers] _.__.var to access members of a parent type in nested types doesn't work...
Roland Mainz
2013-08-17 19:44:24 UTC
Permalink
Hi!

----

The following testcase...
-- snip --
$ ksh -c 'set -o nounset ; namespace com.foo.test1 { typeset -T x_t=(
integer i=9 ; function pr { printf "%d/%d\n" _.i _.__.j ; } ;) ;
typeset -T y_t=( x_t x ; integer j=5 ) ; } ; compound c ;
.com.foo.test1.y_t c.v ; c.v.x.pr'
-- snip --
... should AFAIK print:
9/5
-- snip --

... but ast-ksh.2013-08-14 on SuSE 12.3/AMD64/64bit prints this error:
-- snip --
9//home/test001/bin/ksh: c.v.x.pr[1]: printf: __.j: is not an element of c.v.x
-- snip --

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Loading...