Changes in V4RB API for 2.0

Charles Yeomans yeomans at desuetude.com
Wed Feb 11 12:30:28 CST 2004


On Feb 11, 2004, at 10:22 AM, Ruslan Zasukhin wrote:

> Hi guys,
>
> Now RB SDK support default parameters.
>
> This opens excellent way to improve API of V4RB.
>
> I want do the next major change:
>
> -- in the class VBaseObject drop methods CreateField()
>
> -- instead you will use set of methods:
>         CreateBooleanField()
>         CreateShortField()
>         ...
>
>
> -- and in these methods I want add parameter flags.
>
> We have now
>
>         CreateShortField( name, method )
>
> We will have
>
>         CreateShortField( name, flags = 0, method = nil )
>
>
> As you see BOTH steps can break existed code:
>
> 1) if you have use CreateField() method  you must witch to type 
> specific
> create.
>
> 2) must be corrected CreatexxxxField() calls for new parameters.
>
>
> But instead we get logical API as we have in C++ SDK.
> I was not able mirror it in V4RB API up to know.

Sounds like a good idea to me.

Charles Yeomans



More information about the Valentina mailing list