On 04/11/11 21:00, Adriano dos Santos Fernandes wrote:
> On 11-04-2011 13:25, Alex Peshkoff wrote:
>>  On 04/11/11 20:19, Adriano dos Santos Fernandes wrote:
>>> On 11-04-2011 13:15, Alex Peshkoff wrote:
>>>>  On 04/11/11 19:53, Adriano dos Santos Fernandes wrote:
>>>>> On 11-04-2011 07:28, Alex Peshkoff wrote:
>>>>>>> PS Alex will explain you why "struct" or "class with data members" is
>>>>>>> bad for *portable* code.
>>>>>> Taking into an account Dmirty's sample with XSQLDA I must say that may
>>>>>> be not everything SO bad in this area. At least somehow it did work all
>>>>>> this time. What is problematic - how to add something to such structures?
>>>>>>
>>>>> Nothing is going to be added to this struct. If we need to add something
>>>>> (batch?) to it must be done now.
>>>>>
>>>> And what if we need some "superbatch" in FB4?
>>>>
>>> What is it?
>> Pay attention at quotes :-)
>> This is some feature we do not know today about.
>>
> I'd ask you why you would need to insert this unknown feature in message
> buffer, which is just a pack of messagePtr/messageLength/blrPtr/blrLength.
>
> And I'd ask you too what about if this unknown feature is related to all
> methods that don't have message buffers.

This is reasonable question. If that happens, we will sooner of all have
to add new types of provider interface, and support 2 types of them for
a while (at least one ODS version).

>  Sorry, but if you want
> nitpicking, I can continue which such type of question.

Adriano, I do not wnat nitpicking. Moreover, I agree that my commit was
(not to say more) bad. But your initial  solution with non-POD objects
in API was also bad. I have not understood - do you see problems with
replacing C++ classes with POD objects, i.e. structures, in interface?




------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to