Re: [sigc] Re: [gtkmm] libsigcx and gtkmm 2.4

Christer Palm wrote:

Not only do you need to know how to serialize the object, but you also need the code to do it. And if you don't have it, apart from actually writing it - where would it go? It should, and may have to go into the classes themselves, because of OO principles and the potential need to access private members.

As much as I would like to have that in C++, it just isn't there. It seems to me that attempting to fix that in Glib just so that you could do cross-tread signalling is just way over the top.

Can't comment on the threading-specific issues raised in this argument, but I do have to correct this common misperception that C++ doesn't have serialization - it most certainly does, using the OO, type-safe iostreams interface. See boost::lexical_cast for a trivial-but-effective tool for putting those serialization capabilities to work.

Tim Shead

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]