[Ohrrpgce] I declare a vendetta against BYREF
James Paige
Bob at HamsterRepublic.com
Wed Dec 23 13:48:20 PST 2009
On Thu, Dec 24, 2009 at 03:59:15AM +1300, Ralph Versteegen wrote:
> I am now sure that defaulting to BYREF is pure evil, and we should
> make OPTION BYVAL a priority. Plus, I'm getting sick of typing
> hundreds of explicit BYVALs.
I like that goal. I have been making an effort to be explicit about
integer arguments already.
I was reading the FreeBasic docs about BYVAL and OPTION BYVAL, and I am
uncertain about a couple things.
A BYVAL default for integers and ptrs is a no-brainer, and I understand
the quirks regarding BYVAL strings, but what I don't know is:
* Does BYVAL on a TYPE make a complete copy of the whole dang structure?
* Does OPTION BYVAL apply to TYPEs?
* What effect (if any) does BYVAL have on arrays?
* Does OPTION BYVAL apply to arrays?
---
James Paige
More information about the Ohrrpgce
mailing list