Re: Passed by references and by value
Posted by
stepharo on
Sep 25, 2014; 7:52pm
URL: https://forum.world.st/Passed-by-references-and-by-value-tp4780289p4780319.html
> 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.