Subject | Re: XSQLDA/XSQLVAR issues |
---|---|
Author | Aleksey Karyakin |
Post date | 2005-02-03T10:28:24Z |
"Jim Starkey" <jas@...> wrote in message
news:41FFB2FC.2080007@......
provided to
function calls or associated with other (statement, attachment, etc)
objects? This approach has been used in APIs for a while and could
meet all
requirements and have no pitfalls, or am I missing something?
Regards,
Aleksey Karyakin
news:41FFB2FC.2080007@......
>one
> Let's review how we got here:
>
> 1. The API should be functional, specifically meaning that only
> things is returned. This precludes passing structures byold
> reference, globals, or thread globals.
> 2. The API should be object oriented, but defined as POD (plain
> data) structures that just happen to map to C++ objects oncertain
> platforms. The objects should be opaque, meaning data isthat
> accessible only through methods. The advantage of objects is
> they are extensible and polymorphic.Why not introduce an incapsulated diagnostic object that may be
> 3. Exceptions are always errors. Expected results do not throw
> exceptions.
provided to
function calls or associated with other (statement, attachment, etc)
objects? This approach has been used in APIs for a while and could
meet all
requirements and have no pitfalls, or am I missing something?
Regards,
Aleksey Karyakin