From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Arun Isaac Newsgroups: gmane.lisp.guile.user Subject: Re: C++ Foreign Function Interface Date: Mon, 14 Mar 2016 21:34:24 +0530 Message-ID: <87k2l559mf.fsf@gmail.com> References: <87a8m6nqm4.fsf@gmail.com> <87vb4s4vma.fsf@gmail.com> <42BB375A-66DE-4517-A2C4-4550867C4425@telia.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1457971500 5521 80.91.229.3 (14 Mar 2016 16:05:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2016 16:05:00 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Mar 14 17:04:56 2016 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1afUzH-0001o6-Ra for guile-user@m.gmane.org; Mon, 14 Mar 2016 17:04:55 +0100 Original-Received: from localhost ([::1]:42074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afUzH-0006AW-5S for guile-user@m.gmane.org; Mon, 14 Mar 2016 12:04:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afUz7-0006AP-GO for guile-user@gnu.org; Mon, 14 Mar 2016 12:04:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afUz1-0007V0-I0 for guile-user@gnu.org; Mon, 14 Mar 2016 12:04:45 -0400 Original-Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]:32963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afUz1-0007Ua-Aw for guile-user@gnu.org; Mon, 14 Mar 2016 12:04:39 -0400 Original-Received: by mail-pa0-x236.google.com with SMTP id fl4so159350906pad.0 for ; Mon, 14 Mar 2016 09:04:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version; bh=aNQjMclNNe4kgynxYl8hATIqMoyJ3rYcBCRnQhYmL2M=; b=YQAyHYLHkUcEf9QqjWgwgu21BJc95uInXjmP0NgBYuva7HGQvnJSULdDnkfMABR1VY 3O8dtjsAp6zvUjyoVdi/+34Nib4A3tmC8fvEdXbqWwU7g7PpJ2j3Wx5lsP3voIvVZXzq Tw2dcz6rH9E3UtSfsmtVDg0A/rpWvCX8Ubi80/sE6D3PxLsQsh/QUFeHblns1235c0b8 eL176o/WyFM2WxG79HuW0YYE2lkkoEc8qLkUfXuYqgaqQqlj2XrKWnCqhFQN8rs4pibb IwfK3jQDIycsjUgihNzswkhOYkp7pz3RdenFTgbrhM5LI5nwdo0bUmWrEYLEYZ8j7yHR 0kmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=aNQjMclNNe4kgynxYl8hATIqMoyJ3rYcBCRnQhYmL2M=; b=E/p1TJJ8w2blsRH0Tm2m80f8BrMy0QXOZYaRjQX7k1gRybDeuFulPFWNfEczNRzaMy 5baJuTJeJJTjYLCaEHWnRo00wW4nwXChTX4cO3cMxvNz0XogDFlVAjCrJlc0fckhtdr1 3ecyi5YmUnSyNUf3JBy48NlJI6dPl4Y8Q6dGzNpBQhilyyrj02GMPkgAnaIqoCd3RyLV N58U3He4oOcgYdFDwotXmM2RAkaQ9z6LrhwQnGU4Bst5BEDU/aZO8ynX6Hr0zK2vX301 78vZh25HuO15W+SxbHN0ak/0lAq8imE8RPN/topLdKjb0imnTYp6tD8jFenTMBO/DMEv ldaA== X-Gm-Message-State: AD7BkJLy7LCyYl/GDg9LbYwsTNveVUIFuM61mU9Ys+LoJFBr3jlAblxXUqS28UvqA55sxw== X-Received: by 10.66.234.104 with SMTP id ud8mr39117024pac.143.1457971477995; Mon, 14 Mar 2016 09:04:37 -0700 (PDT) Original-Received: from steel ([223.227.34.140]) by smtp.gmail.com with ESMTPSA id cs14sm33329845pac.10.2016.03.14.09.04.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Mar 2016 09:04:36 -0700 (PDT) In-Reply-To: <42BB375A-66DE-4517-A2C4-4550867C4425@telia.com> ("Hans \=\?utf-8\?Q\?\=C3\=85berg\=22's\?\= message of "Fri, 11 Mar 2016 23:40:55 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::236 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:12484 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hans =C3=85berg writes: > When calling C++ from C, you can=E2=80=99t pass a C++ exception through t= he C > code. So in my example code, there are conversions between C++ and > Guile exceptions. Yeah, this was the discussion in the other thread you linked to. Unfortunately, I don't know anything about C++ exceptions, and hence didn't understand what your code was doing. Can any of this be integrated into guile itself, so that C++ FFI will be easier for the end programmer? David Pirotte writes: > May be this will interest you: > https://github.com/BSeppke/vigra_c/ This is useful too. Thanks! --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJW5uEIAAoJEC4l7othgCuz0QAH/2xN0e6RvPmfquClyDP41c6X 8cVQadzABRR7DU8jM0scAcK+Q6+7HtA0wB/r8qQvw5sSpVPr/J/+w277Prd1TeYo B/TEr9cpRusDgq2NlRfYhg9hlWhvPVXRCcOSOK1O4GPTb3hU0Vh7W/namOiGoqfX x6wgFL5gyB/X1/FJydCDZCJu+tYf7iotdkgD56tw8fOju95oUYmziKulAQNATTgD judeSZOSh6AomieAPcA94qCVN5QV+VWSM70b3mMYyIT+A1v0Mli98luuutDPFYng FETh1VaEOBgBh4aSils3FBvcTZrvKtv/9RiSPguNMGPvkQXE1ASId9RZt9qRJ4I= =d9ZS -----END PGP SIGNATURE----- --==-=-=-- --=-=-=--