[fpc-pascal] constref question
José Mejuto
joshyfun at gmail.com
Mon Mar 7 17:39:18 CET 2011
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é
More information about the fpc-pascal
mailing list