Last active
August 23, 2018 17:49
-
-
Save tkovs/7d56aef5680f391423c1192aae4630d1 to your computer and use it in GitHub Desktop.
Circular reference
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit UnitA; | |
interface | |
uses | |
TUnitB; | |
type | |
TUnitARecord = record | |
... | |
... | |
end; | |
TUnitA = Class | |
... | |
private | |
FExemploB: TUnitB; | |
... | |
... | |
... | |
End; | |
implementation | |
uses | |
UnitADAO; | |
... | |
... | |
end. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit UnitADAO; | |
interface | |
uses | |
UnitA; | |
type | |
TUnitADAO = Class | |
function foo(): TUnitARecord; | |
function bar(): TUnitARecord; | |
... | |
... | |
End; | |
implementation | |
uses | |
UnitB; | |
... | |
... | |
end. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit UnitB; | |
interface | |
uses | |
TUnitA; | |
type | |
TUnitBRecord = record | |
... | |
... | |
end; | |
TUnitB = Class | |
... | |
private | |
FExemploA: TUnitA; | |
... | |
... | |
... | |
End; | |
implementation | |
UnitBDAO; | |
... | |
... | |
end. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit UnitBDAO; | |
interface | |
uses | |
UnitB; | |
type | |
TUnitBDAO = Class | |
function foo(): TUnitBRecord; | |
function bar(): TUnitBRecord; | |
... | |
... | |
End; | |
implementation | |
uses | |
UnitA; | |
... | |
... | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment