> On 8 Jan 2015, at 02:00, Matt Wette <mwe...@alumni.caltech.edu> wrote:
> 
> 
> On Jan 7, 2015, at 6:45 AM, Hans Aberg <haber...@telia.com> wrote:
> 
>> 
>>> On 7 Jan 2015, at 14:52, Matt Wette <mwe...@alumni.caltech.edu> wrote:
>>> 
>>> Python is written in C yet Qt has been integrated in to produce PyQt.   I 
>>> wonder how that is done.  I will take a look.
>> 
>> If Python can be compiled as C++, that might be one way.
> 
> PyQt does not recompile Python in C++ so there must be some way to do it w/o 
> recompiling python (=> guile).
> 
> TeXmacs is another application that embeds C++  (Qt) w/ guile (1.8, though).
You can pass C++ objects to C code, cf. [1], but longjmp() is incompatible with 
C++ exceptions. So before passing the C++ object, convert it to POD (plain old 
data) and catch any exceptions.

1. https://isocpp.org/wiki/faq/mixing-c-and-cpp



Reply via email to