[fpc-pascal] Re: Passing objects to libraries and back

leledumbo leledumbo_cool at yahoo.co.id
Sun Feb 27 09:58:41 CET 2011


> this seems to be something that i'm learning about... it appears to be a 
> bit(???) different than what i am used to with TP/BP 6/7... 
> 
> in this case, does a const parameter point to the original or a copy of
> the 
> original? 

Read the docs. If the size of the argument is greater than native pointer
size, it would be passed by reference. Otherwise, it's passed by value. A
new constref modifier would always pass it by reference.

-- 
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Passing-objects-to-libraries-and-back-tp3401092p3402047.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list