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.

> 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.

-- 
   WBR, SD.

------------------------------------------------------------------------------
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to