Article View: pl.comp.lang.delphi
Article #346395Re: Circular Unit Reference (Circular Class Reference)
From: Roman Tyczka
Date: Wed, 07 Mar 2018 12:03
Date: Wed, 07 Mar 2018 12:03
25 lines
1526 bytes
1526 bytes
On Wed, 7 Mar 2018 01:45:20 -0800 (PST), immo wrote:
> Tak się nad tym zastanawiam jak to zrobić ładnie i dlatego proszę Was o
> jakieś propozycje. Żeby nie było, ja coś takiego mam działającego :) i
> napiszę na koniec jak to zrobiłem. Niemniej jest to w bardzo starej
> apce, którą chciałbym częściowo przepisać na nowo stąd moje pytanie, bo
> być może jest "ładniejszy" sposób na wykonanie tego.
Poszedłbym drogą generyków, czyli jakoś tak:
unit z corem:
ICoreMain = interface
function CoreConnection : ICoreConnection<ICoreMain>;
end;
unit z toolem:
ICoreConnection<I> = interface
function CoreMain : I;
end;
--
pozdrawiam
Roman Tyczka
Technical Details
Message-ID:
<1f7uetk1q6zns.dlg@tyczka.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mailReferences:
<06e89078-c8b6-46f1-8353-fe26050464f7@googlegroups.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: Roman Tyczka <noemail@because.no> Newsgroups: pl.comp.lang.delphi Subject: Re: Circular Unit Reference (Circular Class Reference) Date: Wed, 7 Mar 2018 13:03:41 +0100 Organization: ATMAN - ATM S.A. Lines: 25 Sender: romek@tyczka.no.found Message-ID: <1f7uetk1q6zns.dlg@tyczka.com> References: <06e89078-c8b6-46f1-8353-fe26050464f7@googlegroups.com> NNTP-Posting-Host: 94.75.90.137 Mime-Version: 1.0 X-Trace: node1.news.atman.pl 1520424221 3234 94.75.90.137 (7 Mar 2018 12:03:41 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Wed, 7 Mar 2018 12:03:41 +0000 (UTC) User-Agent: 40tude_Dialog/2.0.15.84 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit