Re: Passed by references and by value
Posted by
abergel on
Sep 26, 2014; 2:37pm
URL: https://forum.world.st/Passed-by-references-and-by-value-tp4780289p4780721.html
Indeed, one should not care about copy by value / reference in Pharo.
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hi,
In PBE says that ordinary objects' ivars are passed by references and small
integers are passed by value.
Strange I do not remember having written that.
Especially because in Smalltalk this has no real interest.
Is there a way to know if a class is passed by reference or by value?
In Smalltalk consider that everything is an object and that you pass a reference to the object.
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.