Steve Wampler wrote: > And if you do, be sure to dereference the result appropriately, since > Icon/Unicon doesn't dereference non-locals on procedure return: > > prod := .value(2) * value(3) > write(prod) # writes: 6, as you'd expect
Incidently, the 'proper' fix would be to explicitly dereference before returning from the procedure, as in: procedure value(k) static result result := k return .result end Even though this shouldn't be needed... -- Steve Wampler -- [EMAIL PROTECTED] The gods that smiled on your birth are now laughing out loud. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Unicon-group mailing list Unicon-group@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unicon-group