On 08/11/14 16:25, Dimitry Sibiryakov wrote: > 11.08.2014 14:03, Adriano dos Santos Fernandes wrote: >> If you add QueryInterface it should be for QueryInterface purposes, but >> as you write, it will be a method that only Delphi or FPC will understand. > Any language/compiler that can work with COM will understand IUnknown > methods (try to > name one that don't work with COM/PAC). Delphi and FPC just
> hide reference counters under > the hood as well as dealing with exceptions. Both not acceptable for us >> And QueryInterface approach is very very ugly approach to OOP. > One method which is never called under normal circumstances and can > always return > E_NOINTERFACE?.. Compare changes in code needed for adding one stub method > and changes > needed for supporting hand-made VMT. The latter loose. > Will it be OK to return E_NOINTERFACE to FPC's loader of interface? Suppose it will fail to load. Somebody mentioned place for 3 pointers in the beginning of VT. What are the second and third? ------------------------------------------------------------------------------ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel