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. |
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. |