[fpc-pascal] Re: How to avoid namespace name clashes after USES ?

Marcos Douglas md at delfire.net
Wed Aug 22 03:36:23 CEST 2012

On Tue, Aug 21, 2012 at 10:23 PM, leledumbo <leledumbo_cool at yahoo.co.id> wrote:
>> 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.

Yes, this is cool but you can got problems, as Timothy Madden said in
this thread.
I am not proposing break this feature -- because I use it too! -- but
add one more.

Marcos Douglas

More information about the fpc-pascal mailing list