Hello FPC-Pascal,

Monday, March 7, 2011, 5:30:45 PM, you wrote:

>> When no modifier is applied (var, const,...) the behavior is 
>> deterministic or can change from platform to platform, or by ABI ?

l> Deterministic. Pointer based values (Classes, Interfaces) are passed by
l> reference. Others are by value. An exception to Ansi- and Wide- Strings,
l> they're passed by reference but when a modification is done the copy on
l> write semantics will make a copy thus simulating the pass by value. The one
l> I'm not sure is Dynamic Arrays.

Great, thank you.

-- 
Best regards,
 José

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

Reply via email to