April 24, 2024, 10:55:01 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


are objects passed by reference or value?

Started by John S, March 11, 2007, 02:04:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

John S

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.
John Siino, Advanced Engineering Services and Software

Parker

They're passed by reference unless you explicitly use the BYVAL keyword.

John S

John Siino, Advanced Engineering Services and Software

J B Wood (Zumwalt)

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.