[fpc-pascal] Re: [Bulk] Re: Namespaces Support

leledumbo leledumbo_cool at yahoo.co.id
Tue Oct 29 17:31:37 CET 2013


> Another type of conflict happens -- but no one talks about it -- using 
procedure/function with the same parameters in different units. 
Eg: GetHandler();  If you use two units that have a GetHandler 
function, in a third unit, you have a trouble. 
Do you (all) use prefix in Procedures and/or Functions too?  ;-) 

It's a FEATURE, not a trouble. I often use it to switch between two
implementations of certain functionality, treating the unit as singleton
object.



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



More information about the fpc-pascal mailing list