[Openmcl-devel] A (stupid?) question

Jubal plathrop at tertiusfamily.net
Wed Jul 30 23:57:51 PDT 2003

I was looking at the documentation for the OpenMCL foreign function 
interface and was intrigued by the defcallback macro. I understand (I 
think) what is does, but I am confused as to how one takes advantage of 
this functionality. Specifially, how does one write C code that takes 
advantage of the callback defined by defcallback. Say, (for a really 
silly example) I wanted to do the following:

(defcallback exchange (:single-float dollars :single-float rate 
	(* dollars rate))

How would I then write a C program to call that function?

Or am I completely missing the point?

Thanks for tolerating my silliness.


Openmcl-devel mailing list
Openmcl-devel at clozure.com

More information about the Openmcl-devel mailing list