Re: Mutual object interdependency trouble

From: Rune (year)
Date: 01/26/05


Date: Wed, 26 Jan 2005 11:36:18 +0100

Tom de Neef wrote:
> In Delphi, the dependency between units is in the interface section.
> Unit A can use unit B and B can use data from A, as long as there is
> no circular reference via the interface sections. So, you could have:
>
> unit A;
> interface uses B;
> implementation
> ...
> end.
>
> unit B;
> interface
> ...
> implementation uses A;
> ...
> end;

This is perfect! I had no idea there could be a uses clause in the
implementation section...

Rune

-- 
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk 


Relevant Pages

  • Re: Borland/Delphi Dying blog entry from Ken Henderson at MS
    ... What I can tell you is that I found Clarion hard work to use. ... Delphi was - well, Delphi. ... Clarion's programming interface was certainly far from being ...
    (borland.public.delphi.non-technical)
  • Re: Uses clause tool
    ... Note that Delphi will insist on having units appear in the interface section that aren't actually required for compilation. ... But it is open source so you could do this yourself. ... If a unit has a parser error, the tool will not refactor that unit. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Fortran DLL-Interface to Delphi
    ... In Interface Subroutine Declarations ... CALL GetFloatValue(piInstanceId, pcValueName, pfValue, piOptions, ... Now I obtain the right results from the Delphi DLL, ... > || * Fortran INTERFACE block to Delphi function ...
    (comp.lang.fortran)
  • Re: What is the benefit to me of .NET as an end-user?
    ... I could not say for Florian:) only for myself. ... Most tasks related to user interface could not be bottleneck. ... development but kill all power of hand-made optimization. ... So Delphi become Interface Development Environments family (Like VB, ...
    (borland.public.delphi.non-technical)
  • Re: video capture mit Delphi5
    ... etwas konsistenter, aber Delphi hat sich seit der Version 5 ja offenbar ... Die Probleme, die du hier hast, liegen nicht an Delphi oder der ... das per QueryInterface besorgte Interface explizit wieder freigibst. ... Wer Komponenten ohne Quelltext oder richtig miese Komponenten ...
    (de.comp.lang.delphi.misc)