guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling function (command-line) from c++ dll


From: Stephen Compall
Subject: Re: Calling function (command-line) from c++ dll
Date: 17 Nov 2003 18:18:27 +0000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Marius Vollmer <address@hidden> writes:

> But if you want to call a function more than once, you should of
> course store away the result of scm_variable_ref and use it directly
> with scm_call_<n>.

(marzullo et guile-user): Though if the function variable's value may
change as a result of some operation made between calls, you may want
to simply store away the symbol from the name, and do a
scm_variable_ref each time, which is alot like how Scheme code is read
(store symbol) and evaluated (variable ref).  The difference is
somewhat -- though not quite -- akin to:

    (map mylist myfunc)

versus

    (map mylist (lambda args (apply myfunc args)))

...which was recently discussed on guile-devel :)

The possibilities are, of course, endless.

--
Stephen Compall or s11 or sirian

Do people know you have freckles everywhere?

ASIO industrial intelligence mailbomb UNSCOM virus emc Forte digicash
chameleon man AIEWS BRLO Cocaine Ft. Meade bootleg data haven




reply via email to

[Prev in Thread] Current Thread [Next in Thread]