[zeromq-dev] what happens to the bindings with libzmq libzapi ...
Pieter Hintjens
pieterh at gmail.com
Tue Apr 26 04:54:16 CEST 2011
Well, libzmq does this, uses C++ to export a C api. But C apps cannot use a
C++ api, AFAIK. So the core API has to remain in C, it seems.
-Pieter
On 26 Apr 2011 02:44, "Steven McCoy" <steven.mccoy at miru.hk> wrote:
> On 26 April 2011 05:48, Pieter Hintjens <ph at imatix.com> wrote:
>
>> On Mon, Apr 25, 2011 at 10:35 PM, Brian Granger <ellisonbg at gmail.com>
>> wrote:
>>
>> > For a project written in C++, that C++ API, should be *the* C++ API
>> > and the C API should be a thin layer on top of that. If those APIs
>> > are broken or confusing, let's just fix them in 3.0.
>>
>> Yes, that would be obvious, but afaik you can't layer C on top of C++.
>>
>>
> The TIB API does this, use C++ to export a C API. Some uses of C++ require
> a C++ main but I think you can avoid this with a dynamic library.
>
> --
> Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110426/2c648503/attachment.htm>
More information about the zeromq-dev
mailing list