unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Linas Vepstas <linasvepstas@gmail.com>
To: Mike Solomon <mikesol@ufl.edu>
Cc: guile-user@gnu.org
Subject: Re: Guile, C++, and Mac OS X 10.4 (powerpc)
Date: Thu, 29 Jul 2010 07:43:09 -0500	[thread overview]
Message-ID: <AANLkTinMrSpjeeMH-RZ0QHFORMGfB07oh1BAHtfk8EGw@mail.gmail.com> (raw)
In-Reply-To: <C8770299.1E9ED%mikesol@ufl.edu>

On 29 July 2010 03:04, Mike Solomon <mikesol@ufl.edu> wrote:
>
> Hope this helps the fledgling C++ programmer using guile!

If anyone is interested, I have a C++ template class that is analogous to
scm_c_define_gsubr  for object methods  (and calls scm_c_define_gsubr
under the covers)  One just says:

   MyTestClass *mtc = new MyTestClass(42);
   define_scheme_primitive("bingo", &MyTestClass::my_func, mtc);

and a corresponding scheme function, with appropriate signature
and argument conversion, gets created.

--linas



  reply	other threads:[~2010-07-29 12:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-28 19:49 Guile, C++, and Mac OS X 10.4 (powerpc) Mike Solomon
2010-07-28 21:19 ` Hans Aberg
2010-07-29  8:04   ` Mike Solomon
2010-07-29 12:43     ` Linas Vepstas [this message]
2010-08-18 13:49   ` Ludovic Courtès
2010-08-18 14:16     ` Hans Aberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTinMrSpjeeMH-RZ0QHFORMGfB07oh1BAHtfk8EGw@mail.gmail.com \
    --to=linasvepstas@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=mikesol@ufl.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).