cc: [email protected] [email protected]
Subject: Re: Re: [ast-developers] AT&T Software Technology ast alpha software
download update
--------
> The patch seems to fix half the problems. The types can now be defined
> but a variable declared with such a type can't find it's type
> functions:
> -- snip --
> $ ksh -o nounset -c 'namespace a.b.c { typeset -T x_t=( integer i=5 )
> ; function pi { printf "i=%d\n" $((_.i+_.i)) ; } ; } ; .a.b.c.x_t var
> ; var.pi'
> /bin/ksh: var.pi: not found
> -- snip --
> AFAIK this should print "10" ...
>
> ----
>
> Bye,
> Roland
This example looks wrong. typeset -T x_t=( integer i=5 ) is
a complete type definition and pi is not part of the type
I assume you meant the following which does print 10.
$ ksh -o nounset -c 'namespace a.b.c { typeset -T x_t=( integer i=5
; function pi { printf "i=%d\n" $((_.i+_.i)) ; } ; }) ; .a.b.c.x_t var
; var.pi'
David Korn
[email protected]
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers