[Gambas-user] Pass arguments by reference?

Grahame White grahame at ...457...
Sat May 15 19:34:37 CEST 2004


On Saturday 15 May 2004 16:29, Rob wrote:
> On Saturday 15 May 2004 11:05, Grahame White wrote:
> > Is there any way to do this? If not in there a workaround? It
> > seems a little odd not to be able to do this at all :/
>
> Object types, as far as I can tell, are always passed by
> reference.  I think this may be true of arrays as well, so maybe
> try putting the stuff you want to pass by reference into an
> array?
>
> Rob
>

That seems a little over the top, it'd make more sense to just pass 
arguments by value and have an option to pass by reference. Heh, I suppose 
that's just because I'm more used to coding with by reference :)

Grahame




More information about the User mailing list