On 29 July 2010 03:04, Mike Solomon <[email protected]> wrote:
>
> Hope this helps the fledgling C++ programmer using guile!

If anyone is interested, I have a C++ template class that is analogous to
scm_c_define_gsubr  for object methods  (and calls scm_c_define_gsubr
under the covers)  One just says:

   MyTestClass *mtc = new MyTestClass(42);
   define_scheme_primitive("bingo", &MyTestClass::my_func, mtc);

and a corresponding scheme function, with appropriate signature
and argument conversion, gets created.

--linas

Reply via email to