On 08/11/14 16:57, Adriano dos Santos Fernandes wrote:

>>> But there may be more cases, like passing a [in]/out parameter, but may
>>> be possible in C++.
>> May you be a bit more explicit here?
>> If it's about passing interface as parameter - yes, version
>> check/upgrade is needed here.
>> But I do not catch how you differ for interface is it in or out?
>>
> With pointers to pointers. Imagine something like this:
>
> void execute(/* in-out */ ITransaction** transaction);
>
> ITransaction* transaction = ...;
> execute(&transaction);
>
> AFAIK we currently does not have this, however.

A case with pointer to pointer is bad in many cases. Therefore (though 
it's not too good from first POV) I've used to return transaction from 
execute. IMHO we should better never such constructions.


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

Reply via email to