Hi
I am trying invoke Lisp Functions from C using foreign functions
interface. I
Successfully executed the example given in the allegro CL directory
Examples/dll/ But When I am trying to assign values to a global variable
from
Lisp function or try to invoke another function not present in the Lisp
Based DLL
*.dxl.
Then a global variable value is not accessible from or it is not
invoking another function
Illustration:
(defun factorial (x) ; assumes caller
will trap errors
(block factorial
(fun x)
(setf y 11)
(return-from factorial 66)
))
Whenever factorial is invoked from C it assigns value for y but it seems
scope is limited to that function
As well as it does not invoke (fun x) which is not built in the same
image.
What I am looking for is a way to pass values from C to Lisp and store
them in a global variable.
Whether this can be achieved without storing them in the flat files etc.
Please let me know about the same.
Thanx in advance.
Regards
Amit