Re: return value

Bill Yerazunis <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <[email protected]>
   From: Ger Hobbelt <[email protected]>

   In vanilla crm114, the declare LocalVar up there is really NOT local,
   but _global_, so you can access that variable any time, any place
   _after_ you've declared ('isolate') it.

   Now that GerH crm114 support variable scoping, this behaviour only
   works within the declaration scope.
   --> declare it in global / outer scope, i.e. in the calling code,
   before calling the procedure (this is the nasty way of coding this)
   OR
   pick up the return value by having 'call' pass a variable where the
   returned value will be copied into (this is the advised way, not only
   in the crm114 script language ;-) )

This needs to be switchable, so that people who want to run the Ger
versions (say, for Windows) can also run scripts in the classic
language.

	- Bill Yerazunis

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.