[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Invoking guile procs from C in an efficient way
From: |
Andreas Rottmann |
Subject: |
Re: Invoking guile procs from C in an efficient way |
Date: |
Mon, 25 Oct 2004 16:18:39 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Victor Morilla <address@hidden> writes:
> Hello,
>
> I would like to know the best way to resolve a proc symbol from its
> name and call it from c. Right now, I'm using:
>
> SCM proc = scm_c_eval_string("my_proc");
> scm_apply(proc, argslist, SCM_EOL);
>
> Is there an alternative to scm_c_eval_string ? I have used scm_c_lookup
>
> SCM proc = scm_c_lookup("my_proc");
> scm_apply(proc, argslist, SCM_EOL);
>
I think it's:
scm_apply(SCM_VARIABLE_REF(scm_c_lookup("my-proc")), argslist, SCM_EOL);
HTH, Rotty
--
Andreas Rottmann | address@hidden | address@hidden | address@hidden
http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc
Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62
Software Patents: Where do you want to stifle inovation today?