[fpc-pascal] constref question

leledumbo leledumbo_cool at yahoo.co.id
Mon Mar 7 17:30:45 CET 2011


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

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

--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/constref-question-tp3410272p3412692.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list