guile-user
[Top][All Lists]
Advanced

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

Re: concerns when integrating C++ code into guile?


From: Ludovic Courtès
Subject: Re: concerns when integrating C++ code into guile?
Date: Wed, 07 Jan 2015 21:24:34 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

If Scheme code calls C++ code that throws an exception, then the stack
will be unwound by libstdc++ and Guile’s ‘dynamic-wind’ handlers and
such will not run.  That’s probably the main difficulty.

Likewise when C++ code calls Scheme code.

TeXmacs and LilyPond both embed Guile in a C++ code base so their
developers probably have more insight into this.  Since these are old
projects, it could be that they don’t use C++ exceptions.

Thanks,
Ludo’.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]