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.



Reply via email to