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

leledumbo leledumbo_cool at yahoo.co.id
Sat Feb 26 08:12:00 CET 2011


> is it allowed ?

Yes, but watch out that is/as operator might not work as expected.

> can i pass ansistrings ?

Yes, but only if you know what you're doing. NEVER modify the passed strings
(it would confuse the reference counting). Use const parameter all the time.

> i know that passing ansistrings or tobjects would make the plugin system
> compatible with pascal only

Perhaps even worse, to FPC only.

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



More information about the fpc-pascal mailing list