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 -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88 1707