* pass a SCM value to a SCM proc from C
@ 2003-09-25 21:50 Nic Ferrier
2003-09-26 1:12 ` Kevin Ryde
2003-09-27 14:40 ` Nic Ferrier
0 siblings, 2 replies; 4+ messages in thread
From: Nic Ferrier @ 2003-09-25 21:50 UTC (permalink / raw)
I have a slightly complicated requirement.
>From C I want to:
1. init guile
2. get a reference to a SCM proc
3. make a SCM object from C
4. call the SCM proc from (2) passing it the SCM object from (3)
I can't immediately see how to do this (though I can see how to do
steps 1. to 3.).
Any suggestions would be greatly appreciated.
Nic
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: pass a SCM value to a SCM proc from C
2003-09-25 21:50 pass a SCM value to a SCM proc from C Nic Ferrier
@ 2003-09-26 1:12 ` Kevin Ryde
2003-09-27 14:40 ` Nic Ferrier
1 sibling, 0 replies; 4+ messages in thread
From: Kevin Ryde @ 2003-09-26 1:12 UTC (permalink / raw)
Cc: guile-user
Nic Ferrier <nferrier@tapsellferrier.co.uk> writes:
>
> 4. call the SCM proc from (2) passing it the SCM object from (3)
scm_call_1 perhaps (recently added to the manual in the cvs).
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: pass a SCM value to a SCM proc from C
2003-09-25 21:50 pass a SCM value to a SCM proc from C Nic Ferrier
2003-09-26 1:12 ` Kevin Ryde
@ 2003-09-27 14:40 ` Nic Ferrier
2003-09-28 6:38 ` Thamer Al-Harbash
1 sibling, 1 reply; 4+ messages in thread
From: Nic Ferrier @ 2003-09-27 14:40 UTC (permalink / raw)
Nic Ferrier <nferrier@tapsellferrier.co.uk> writes:
> I have a slightly complicated requirement.
>
> >From C I want to:
>
> 1. init guile
> 2. get a reference to a SCM proc
> 3. make a SCM object from C
> 4. call the SCM proc from (2) passing it the SCM object from (3)
>
>
> I can't immediately see how to do this (though I can see how to do
> steps 1. to 3.).
>
> Any suggestions would be greatly appreciated.
It is, of course, scm_applyX where X is 0, 1, 2 etc...
It's in the guile doc.
Nic
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: pass a SCM value to a SCM proc from C
2003-09-27 14:40 ` Nic Ferrier
@ 2003-09-28 6:38 ` Thamer Al-Harbash
0 siblings, 0 replies; 4+ messages in thread
From: Thamer Al-Harbash @ 2003-09-28 6:38 UTC (permalink / raw)
On Sat, 27 Sep 2003, Nic Ferrier wrote:
> It is, of course, scm_applyX where X is 0, 1, 2 etc...
>
> It's in the guile doc.
And if the OP is interested there's also scm_call_X which seems
to just call scm_apply and be a little more convenient. This is
all in libguile/eval.c
--
Thamer Al-Harbash
GPG Key fingerprint: D7F3 1E3B F329 8DD5 FAE3 03B1 A663 E359 D686 AA1F
"haha this is another self-referential joke"
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-09-28 6:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-25 21:50 pass a SCM value to a SCM proc from C Nic Ferrier
2003-09-26 1:12 ` Kevin Ryde
2003-09-27 14:40 ` Nic Ferrier
2003-09-28 6:38 ` Thamer Al-Harbash
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).