[Y-devel] C API?

Mark Thomas mark at www.y-windows.org
Sun Feb 22 17:26:33 GMT 2004


On Sun, 22 Feb 2004, Richard Hills wrote:

>         I've started to write a libYc, which will use the libY messaging
> system, and I've already had to start copying out large chunks of code
> from libYc++. I'd rather not write a C wrapper for the C++ code, since
> the result will be a terrible mess.

I completely agree.  Each language binding should be self-standing and use
the best features of the language to represent Y objects.

>         Since I think having both C and C++ bindings is a good thing, I think
> having a base C level with a C++ wrapper would be the best way of doing
> it. Considering the functions are there, why doesn't libYc++ use libY
> more?

libYc++ used to use libY (and the plan was to write a libYc that used it
too).  However, the actual amount of shared code is minimal, and the name
libY almost clashes with the yiff library (liby), so libY is on its way
out.

You should move the relevent bits of code out of libY and put them
directly in libYc: libY will be going away very soon.

Oh, and a word of warning: the current library implementations are a
little sketchy at the moment, and they (along with the messaging protocol)
might change soon.  I'll post more details later when I have the time.
This also means if there is something you really want in the next revision
of the protocol, you should ask for it now :)

Regards,

  Mark.
-- 
|| Mark Thomas
|| efaref.net
||
|| I haven't lost my mind...it's backed up on tape somewhere.



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved