Login  Register

Re: Passed by references and by value

Posted by Mark Rizun on Sep 25, 2014; 6:20pm
URL: https://forum.world.st/Passed-by-references-and-by-value-tp4780289p4780291.html

Hi,

Most classes are passed by reference including those that were defined by user.
But classes like integer are passed by value.
I think it's similar to C#.
I may be wrong, so better wait for another more competent reply:)

Best,
Mark

2014-09-25 21:14 GMT+03:00 nacho <[hidden email]>:
Hi,
In PBE says that ordinary objects' ivars are passed by references and small
integers are passed by value.
Is there a way to know if a class is passed by reference or by value?
Only small integers are passed as value?
Thanks in advance
Nacho





-----
Nacho
Smalltalker apprentice.
Buenos Aires, Argentina.
--
View this message in context: http://forum.world.st/Passed-by-references-and-by-value-tp4780289.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.