Toster Posted October 9, 2008 Report Share Posted October 9, 2008 type TDummyComList = class public procedure TDummyComList.OnDisconnect(const userName:String); end; procedure TDummyComList.OnDisconnect; begin ShowMessage('Hurra'); end; begin dum.OnDisconnect('ala'); end; A kompilator na to: 1. Sie kompiluje 2. Sie nie kompiluje ? Oto jest pytanie Always Dark<br /> Link to comment Share on other sites More sharing options...
DevPort Posted October 9, 2008 Report Share Posted October 9, 2008 Sprawdzałem to u siebie na D7 P. ;] i ani 1, ani 7 raz nie chce się kompilować. procedure TDummyComList.OnDisconnect(const userName:String); Wyrzuca oczywisty błąd: undeclared identifier TDummyComList Możesz opisać na czym to kompilujesz? Czyżby Bug kompilatora ? Prawdziwy programista wiesza sie wraz ze swoim programem. Link to comment Share on other sites More sharing options...
filuu Posted October 9, 2008 Report Share Posted October 9, 2008 Sie nie kompiluje Lubię cytryny ! Link to comment Share on other sites More sharing options...
Blind Posted October 9, 2008 Report Share Posted October 9, 2008 1 i nawet powino dzialac www.blinder.pl - Blog Link to comment Share on other sites More sharing options...
Toster Posted October 9, 2008 Author Report Share Posted October 9, 2008 Pod TD sie kompiluje i sie dziala Always Dark<br /> Link to comment Share on other sites More sharing options...
Force Posted October 10, 2008 Report Share Posted October 10, 2008 Wg mnie to się kompiluje bo jakaś rzecz w opcjach projektu jest odchaczona i TD jak widzi, że metoda nie używa nic z klasy to traktuje ją jako klasową i pewnie można gdzieś ustawić aby tak nie robił bo tak to można nieświadomie zrobić coś co nie jest kompatybilne wstecz choć takie miało być Baza tysięcy lotnisk: http://airportsbase.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.