On Tue, 01 Jun 2010 16:30:22 +0100
Martin <f...@mfriebe.de> wrote:

> I don't know all the internals of FPC, but yes to my understanding, your 
> quote:
>    "parameter passing is just an implicit assignment"
> is absolutely true.
> 
> So why do you then say "copy on write" would not apply?
> The assignment creates a 2nd reference, and a copy only happens if 
> inside Foo a change is made to the string.

You're right, I reasoned wrongly.

Deins
________________________________

vit esse estrany ☣

spir.wikidot.com
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to