cc: [email protected]
Subject: Re: [ast-users] Can't use .sh.value to return values through function  
members.
--------

> Hi, ${x.f} and ${ f;} should be the same AFAICT:
> 
> #!/usr/bin/env ksh
> 
> typeset -T X=(
>       typeset val
> 
>       function f {
>               .sh.value=${_.val}
>       }
> )
> 
> function f {
>       .sh.value=${x.val}
> }
> 
> X x=(val=hi)
> 
> # Only ${ f;} produces output.
> printf 'x.f: %s\nf: %s\n' "${x.f}" "${ f;}"
> print -v .sh.version
> 
> # x.f:
> # f: hi
> # Version AIJM 93v- 2013-06-28
> 
> -- 
> Dan Douglas
> _______________________________________________
> 

This was a bug and I fixed it for the next alpha.

David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to