|
From: | Paul Emsley |
Subject: | Re: get procedure? |
Date: | Wed, 17 Feb 2010 18:30:15 +0000 |
User-agent: | Thunderbird 2.0.0.23 (X11/20090817) |
Paul Emsley wrote:
I don't understand what xxx is. Can you help? (Bit of a noob question, I feel).SCM rest = SCM_EOL; SCM arg_list = SCM_EOL; arg_list = scm_cons(SCM_MAKINUM(4), arg_list); arg_list = scm_cons(SCM_MAKINUM(1), arg_list); SCM func = xxx("-"); SCM v = scm_apply_1(func, arg_list, rest); // Now v should be a scheme int 3
Just to be clear, I don't mean scm_minus(), this was an attempt at simplification :) I have a scheme function (actually, it's record-accessor) passed to a c++ function that I want to apply to the argument list (the record and a symbol of course).
Thanks, Paul.
[Prev in Thread] | Current Thread | [Next in Thread] |