Waldek Hebisch wrote:
Frank Heckenbach wrote:
IMHO the most we could do is an (optional) warning when importing the same identifier from several units. I think it could be useful -- the default should be off, of course, but perhaps `-Wall' should turn it on. Waldek, since you're working in that area, would this be easy to add?
It does not look hard, but currently System module redefines a symbol from GPC module. I think we need first a method to avoid warning if redefinition is intentional (at least if `-Wall' activates such warning).
Well, `System' is for "hardcore" BP compatibility, and such projects won't probably even think of using `-Wall'. ;-)
Quite a weak argument, I know, but anyway, they can always turn off this option (with a `{$local W no-duplicate-import}' or so, if they want it otherwise). If that's the only case where we expect it to happen, I wouldn't mind so much.
Frank