[fpc-pascal] Re: How to avoid namespace name clashes after USES ?
leledumbo_cool at yahoo.co.id
Wed Aug 22 03:23:33 CEST 2012
> Requiring all functions to be allways fully qualified will make the
most commom case worse than current implementation just to be better
for the uncommon case. This is a step back, not forward...
Indeed, and the way unit system works has an advantage: changing entry order
/ entry name in the uses clause can change the program behavior as intended
without changing other parts. Say, I have GraphicsDirectX and GraphicsOpenGL
unit, both having the same interface, simply changing this in the uses
clause could do a backend switch easily.
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/How-to-avoid-namespace-name-clashes-after-USES-tp5710896p5710928.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal