unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Vladimir Zhbanov <vzhbanov@gmail.com>
To: guile-user@gnu.org
Subject: Re: Using in C a function defined in guile
Date: Sun, 6 Sep 2015 22:39:31 +0300	[thread overview]
Message-ID: <20150906193931.GA3117@localhost.localdomain> (raw)
In-Reply-To: <3343641.HGLD0SKhKs@fluss>

On Sun, Sep 06, 2015 at 06:21:35PM +0200, Arne Babenhauserheide wrote:
> Hi Vadimir,
> 
> Am Sonntag, 6. September 2015, 17:10:01 schrieb Vladimir Zhbanov:
> > After speaking with a man who doesn't like scheme and wants to make all
> > his work in C, I wonder if there is an easy way to make the procedures
> > wholly written in Guile available in C, besides any kind of 'eval'.
> > Looking through the guile info I didn't found anything other.
> 
> The manual shows how to call Guile functions from your program:
> http://www.gnu.org/software/guile/manual/guile.html#Guile-Initialization-Functions
> 
> The sample however embeds a full Guile shell:
> http://www.gnu.org/software/guile/manual/guile.html#A-Sample-Guile-Main-Program
> 
> If I recall correctly, if you only want to provide the Scheme
> functions, stick to scm_init_guile and scm_with_guile.
> 
> See Initializing Guile from the API reference:
> http://www.gnu.org/software/guile/manual/guile.html#Initialization

Thank you, Arne.

I've already read all the sections you're referring to here.

Cheers,
  Vladimir



  reply	other threads:[~2015-09-06 19:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-06 14:10 Using in C a function defined in guile Vladimir Zhbanov
2015-09-06 14:54 ` Taylan Ulrich Bayırlı/Kammer
2015-09-06 15:23 ` Panicz Maciej Godek
2015-09-06 18:52   ` Vladimir Zhbanov
2015-09-06 16:09 ` Mike Gran
2015-09-06 16:37   ` Arne Babenhauserheide
2015-09-06 19:44   ` Vladimir Zhbanov
2015-09-06 16:21 ` Arne Babenhauserheide
2015-09-06 19:39   ` Vladimir Zhbanov [this message]
2015-09-06 17:09 ` David Kastrup

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=20150906193931.GA3117@localhost.localdomain \
    --to=vzhbanov@gmail.com \
    --cc=guile-user@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).