Hi!

----

Is there a way to return a compound variable value from a function
without dismanteling each single value first (which would be very
painfull in the case when the compound variable has hundreds or
thousands of members which itself are compound variables (see
http://opensolaris.pastebin.ca/raw/683236 for an example)) ?

I've tried the following example but it doesn't really work:
-- snip --
function g
{
    typeset x=(float x=1 y=2)
    print $x
}

typeset l=$(g)

print "${l.x}"
-- snip --

The variable "l.x" is empty in this case.

----

Bye,
Roland

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

Reply via email to