IonicWind Software

Aurora Compiler => General Discussion => Topic started by: John S on March 11, 2007, 02:04:58 PM

Title: are objects passed by reference or value?
Post by: John S on March 11, 2007, 02:04:58 PM
There was a couple messages discussing structures but nothing I thought was definitive.

In Aurora, using classes and methods, are objects passed by value or reference?  I think they are passed by reference.
Title: Re: are objects passed by reference or value?
Post by: Parker on March 11, 2007, 02:08:21 PM
They're passed by reference unless you explicitly use the BYVAL keyword.
Title: Re: are objects passed by reference or value?
Post by: John S on March 11, 2007, 02:10:43 PM
thanks, that's what I thought.
Title: Re: are objects passed by reference or value?
Post by: J B Wood (Zumwalt) on April 05, 2007, 09:17:17 PM
In Aurora and I would imaging EBasic also, static variables (int, char, string, etc) are passed by value, everything else is by reference.
This is standard for all C style languages anyway, same with basics.