Is it possible to do a constant reference? In c++, it's denoted by: const int*
or const int& > From: James Paige <[email protected]> > Sent: Wednesday, December 23, 2009 3:48 PM > > 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 > _______________________________________________ > Ohrrpgce mailing list > [email protected] > http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org _______________________________________________________ Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting http://www.doteasy.com _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
