Login  Register

Re: Passed by references and by value

Posted by Marcus Denker-4 on Sep 26, 2014; 6:22am
URL: https://forum.world.st/Passed-by-references-and-by-value-tp4780289p4780377.html


On 26 Sep 2014, at 08:07, Clément Bera <[hidden email]> wrote:

> Depending on the VM you use, different objects are passed by values.
>
> Currently -> only smallintegers
> on Spur 32 bits VM -> smallintegers and characters
> on Spur 64 bits VM -> smallintegers, characters and smallfloat
>
> But as Stef said it does not really matter in smalltalk.
>

Yes, even for these cases you pass the *reference*, only that the reference
happens to encode the value.

        Marcus


signature.asc (210 bytes) Download Attachment