Login  Register

Re: Passed by references and by value

Posted by Esteban A. Maringolo on Sep 25, 2014; 6:28pm
URL: https://forum.world.st/Passed-by-references-and-by-value-tp4780289p4780294.html

2014-09-25 15: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?

Yes.

It has to do with the object headers, SmallIntegers are embedded in the OH.


Esteban A. Maringolo