On 11/08/2014 06:04, Kjell Rilbe wrote:
> Den 2014-08-10 12:04 skrev Dmitry Yemanov såhär:
>> 10.08.2014 13:55, Reinier Olislagers wrote:
>>
>>> However, apparently FB devs don't think it's important to keep it in
>>> sync with the C++ interface - even if third parties could submit patches
>>> for that.
>>>
>>> So in effect, new FB (features) will not be compatible with any language
>>> that does not have C++ support.
>> So far we're trying to find a compromise.
>>
> I've been following this thread with interest. Being an end user (not 
> API user) i don't really understand all the details, but it appears to 
> me as if Adriano et al are arguing in favour of a C++ API and some 
> "hacks" to make that API accessible from non C++ compatible languages.
>
> While I very much like the idea of an OO interface generally speaking, 
> it seems to me that the FB project would have to take on a huge amount 
> of work to make that API accessible from "any" language. The proposed 
> solutions seem very "hacky" to me - too low-level and dependent on 
> details of various compiler implementations, that might also change 
> between compiler versions.

The hack approach dependent on compilers details is the one we use
currently. It's exactly what I tried to avoid, writing a stable and
compiler independent layout.

>  Just to keep it accessible from Delphi as 
> well as FP seems like excessive work, especially considering that the 
> details of vtable etc might change in new version of FP and Delphi.

If they're really the dumb people wanting to kill their languages, they
will change.

> My question in that context is what is really the point of having a C++ 
> API rather than a regula C one, which appears to have much less of those 
> compatibility problems?
>
> If the point is "small", it seems not worth the trouble.
>
>
My API is a C API with good access to C++, Delphi and FPC, until nobody
pointed the contrary.


Adriano


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

Reply via email to