svn commit: samba r18030 -
in branches/SAMBA_3_0/source/tdb/common: .
tridge at samba.org
tridge at samba.org
Mon Sep 4 22:32:27 GMT 2006
Jeremy,
> Yes, it's very easy to make something like a separate libtdb usable
> in C++. You'd probably end up wrapping it with objects for a more
> natural fit, but it's easily doable with tdb as-is.
The "wrapping it with objects" bit is the important part I think. I
know you have more experience with C++ than I do, but what little I
know tells me that not doing the wrapping in objects would leave you
with a fairly poor interface for anything other than a fairly trivial
C++ program.
For perl/python/tcl/js etc the approach we have taken is an external
tool (like swig or pidl) to create an interface suited to the
language. Is there something like that for C++?
> None at all. C++ is a superset of C.
if only it were so!
Cheers, Tridge
More information about the samba-technical
mailing list