Thread
:
references passed through parameters, do they copy the object or reference the orig?
View Single Post
Jun 30th, 2005, 8:38 PM
#
2
Cerulean
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power:
4
It depends what type ObjectB is. Is it a string, integer, floating point number, or boolean? If so, it will get copied, and not referenced. Else it should be referenced.
Cerulean
View Public Profile
Visit Cerulean's homepage!
Find More Posts by Cerulean