Autor Beitrag
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Fr 15.01.10 18:27 
Hallo,

ich hab mal ne Frage an euch. Warum soll man die Units beim uses im implementation-Teil hinschreiben? Bis jetzt weiß ich nur das es böse ist wenn man das macht, aber ie Erklärung dazu fehlt mir.^^

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 15.01.10 18:31 
Mit uses im implementation-Teil sagst Du Delphi einfach nur, dass deine Unit nicht im Interface (also der sichtbaren) Implementierung von einer externen Datei abhängt, sondern in ihrer Umsetzung\Implementierung. Damit lockert man einfach die Bindung zwischen zwei Units.

Problematisch wird dies, wenn man eh einen Zirkelbezug hat und beide Units zusätzlich einen Initialization-Abschnitt besitzen, da in solchen Fällen i.d.R. nicht klar ist, welcher dieser beiden Abschnitte zuerst ausgeführt wird (hab damit selber im ODbgIntf mal eine Reihe von Problemen gehabt.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Fr 15.01.10 18:43 
k, danke. :) wieder n Stückchen klüger geworden

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.