unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Andreas Rottmann <a.rottmann@gmx.at>
Cc: "Guile \(Devel\)" <guile-devel@gnu.org>
Subject: Re: C++ Embeded GOOPS interpreter
Date: Thu, 16 Oct 2003 16:39:51 +0200	[thread overview]
Message-ID: <87oewhp7pk.fsf@alice.rotty.yi.org> (raw)
In-Reply-To: <1066304154.28107.35.camel@MARZULLO-MIS> (Laurent Marzullo's message of "Thu, 16 Oct 2003 13:35:54 +0200")

Laurent Marzullo <marzullo@la-defense.oilfield.slb.com> writes:

> Hello,
>
> I would like to write a C++ Application which will use a GOOPS
> interpreter.
>
> The C++ application will provide a set of class that could
> be used in a scheme programme.
>
> For example, I would like to provide:
>
> class MyClass
> {
>     public:
>         MyClass( int p );
>         void SayHello( void );
>
>     private:
>         int   m_private;
> };
>
> (Perhaps the class above could be seen as:
> (define-class <MyClass> ()
>     (p #:init-value 0))
>
>
> and to be able to write in scheme:
>
> (define my_object (make <MyClass> #:p 5 ))
>
> I've take a look at SWIG to generate wrapper function etc, but
> it does not use GOOPS even with -c++ option ?
> Is there any doc where I could find information of how to write C++
> code to provide C++ class access in scheme ?
>
I've written something like this, although it depends on Guile 1.7
(CVS) (but it should be easy to get it running with 1.6) and still has
quite some bugs. See
http://ucxx.sourceforge.net/docs/manual/ch01s02.html#id2816562. I
recommend you try the CVS version. Even if you don't really use Yehia,
it's code (esp. the stuff in
http://cvs.sourceforge.net/viewcvs.py/ucxx/yehia/plugins/guile/)
should be useful for ypur purposes. Feel free to ask me if you need
help wrt. Yehia.


HTH & Regards, Andy
-- 
Andreas Rottmann         | Rotty@ICQ      | 118634484@ICQ | a.rottmann@gmx.at
http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62

Packages should build-depend on what they should build-depend.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2003-10-16 14:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-16 11:35 C++ Embeded GOOPS interpreter Laurent Marzullo
2003-10-16 14:39 ` Andreas Rottmann [this message]
2003-10-16 16:43 ` Matthias Koeppe

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=87oewhp7pk.fsf@alice.rotty.yi.org \
    --to=a.rottmann@gmx.at \
    --cc=guile-devel@gnu.org \
    /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).