14.08.2014 16:04, Tony Whyman wrote:
> I changed it to:

   Yes, I tried this workaround too. It works, but requirement to use cast on 
every 
assignment looks ugly: code generated for TMaster.getStatus() etc is the same, 
so every 
returning of interface will have to use such cast.

> The program now does complete without an error, but returns "15" as the
> version.  My reading of the Firebird code is that the correct result is
> 4.

   On yesterday's sources result must be 17. Perhaps, you are using early Alpha 
and 
IMaster was changed since then (as well as its version).

> Interestingly, if I change the coercion to
>
> master := TObject(GetMaster()) as IMaster;

   No, this is completely wrong and never could work. In no way PAC is 
compatible with FPC 
TObject.

-- 
   WBR, SD.

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

Reply via email to