LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Make a function a constant part of LISP? (https://www.linuxquestions.org/questions/programming-9/make-a-function-a-constant-part-of-lisp-631280/)

raskol 03-28-2008 11:02 AM

Make a function a constant part of LISP?
 
i am trying to learn lisp.

if i write a function i want to be a part of lisp, i mean i dont want to load this file/function every time i want to use it but i want to just be able to write (awesomefunction 'alist) in a new program.


how do i do this? should it be saved in some special library?

i am using cormanlisp if that helps.

abolishtheun 03-28-2008 03:23 PM

Are you talking about common lisp? with CL, you can save an image; there's no standardized way to do this... for sbcl it's sb:save-lisp-and-die, for clisp it's ext:saveinitmem. But you can just as well load a library from source/compiled binary, just like any other interactive language.


All times are GMT -5. The time now is 12:34 AM.