When using Delphi: If I have a unit that is filled with constants like...
Unit AConsts;
Interface
Const
Const1 : WideString = 'Const1';
Const2 : WideString = 'Const2';
Const3 : WideString = 'Const3';
Const4 = 100;
Const5 = 100;
Implementation
end.
and I want to use this unit from another unit, is there any difference between...
Unit AUnit;
Interface
Uses
AConsts;
Implementation
end.
and
Unit AUnit;
Interface
Implementation
Uses
AConsts;
end.
? Or in other words, is there a difference between the two as far as a compiled app is concern?
[Edit 1]
Thanks for the answers so far.
I didn't make this question clear enough, and for that I apologise. The question is not about scope, avoiding circular references etc. It is about differences in the compiled app. Maybe another example would help.
If UnitA, UnitB and UnitC all use AConsts, would there be a difference in the compiled app (assuming no name clashes between the constants in the AConsts units and other code) between App1 where these UnitA, UnitB and UnitC all have AConsts in the Interface section's uses clause and App2 where UnitA, UnitB and UnitC all have AConsts in the Implementation section's uses clause.