From: Jason E. A. <j.e...@gm...> - 2011-04-21 06:01:39
|
Quick question (perhaps the manual is out of date on this) -- I couldn't seem to load or locate the sources for the lisp-c-map function. I had guessed that given how (lisp-c-map) is described in the manual at "8.8.3 Controlling the Lisp/C Interface", it would be helpful in understanding the current memory conventions for C and lisp objects. But does this function still exist? If not, is there a replacement, or how should I load it. Thank you. Jason On Wed, Apr 20, 2011 at 7:08 PM, Ralf Juengling <jue...@cs...> wrote: > Hi Jason, > > What you want to do should be possible. The way to interface C/C++ > libraries is to use inline-C and compile the interface functions. > You will need to think about who owns memory given to or gotten > from a call to an external library. Take a look at the opengl > interface in the packages directory for example. > > As for macros, the basic stuff is there (defmacro, gensym, macroexpand), > but Lush is not Common Lisp and you will find a lot > of things missing if you are coming from CL programmer. > > Lush does have regular expressions but no library to support > writing lexers or parsers. > > Ralf |