Re: Re[4]: Why some people have not upgraded
- Posted by Patrick Barnes <mrtrick at gmail.com> Jan 03, 2006
- 427 views
On 1/3/06, D. Newhall <guest at rapideuphoria.com> wrote: > Well, in this case RDS probably won't implement it because it's a bad ide= a. A function returns a value so, naturally, if I forget to catch this valu= e I'll be trying to make it do somthing it shouldn't be doing and isn't per= mitted in the language so I would of course expect an error to occur. That's certainly presumptive, at best. You don't write every function you use, you don't use every value a function returns (system_exec?), and many functions do MORE than just return a value. If you don't want to use the value a function returns... you can currently = do: global object JUNK ... JUNK = myfuncwithignoredreturn() --...Great, every time I call this, it has to de-allocate the data that was previously stored in JUNK, allocate space for the return value, and set it, for nothing. Or you can do: if myfuncwithignoredreturn() then end if --...Why the hell would we use a control structure for no reason? Not to mention the fact that this crashes if the func returns a sequence. There's still overhead too - the interpreter has to store the return value long enough to calculate whether it's zero or not, and the comparison has to be done. I used to think that the language having a procedure call and a function call was quite logical, but after becoming acquainted with plenty of other languages, I'd say it's a rather useless feature. -- MrTrick ----------