On Thu, 15 Apr 2010, Michael Doubez wrote:
> On 15 avr, 09:17, Joakim Hove <joakim.h...@gmail.com> wrote:
>>> Just use the library as is. Wrapping it in C++ code doesn't do much but
>>> change the syntax and that shouldn't matter.
>
> It is not totally true, automatic call of alloc/free function is IMO
> already an improvement.
Exactly. It's perfectly sensible from C++ programmers already using
exceptions and relying on destructors to expect *all* libraries to conform
to this style. Otherwise they'll have to mix "traditional" error handling
with exceptions, which is worse than any of them alone.
IMO, this hurts most when trying to do UNIX(R) systems programming in
"idiomatic" C++.
("Newsgroups: comp.lang.c++" snipped, because I'm not subscribed to it.)
Cheers,
lacos
|