Re: Pass by address
- Posted by Jeff Zeitlin <jzeitlin at CYBURBAN.COM> Aug 18, 2000
- 505 views
On Fri, 18 Aug 2000 00:02:18 -0400, Andy Cranston <Andy.Cranston at EUPHONY.CO.UK> wrote: >Ouch! That C++ code hurts >On the pass by address thread... >Maybe I'm being simplistic here (and I'm all for the easy life - it's why I >like Euphoria so much) but am I hitting the nail on the head re: pass by >address when I say: >"The problem is that a function can take multiple arguments but can only >return one value?" >If we had a function that could return multiple values would we then not >need pass by address? Something like: You can always return a sequence with (n) elements, (n) being the number of values that you want to return. I believe the standard Euphoria library function 'get()' does this. -- Jeff Zeitlin jzeitlin at cyburban.com