LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-28-2008, 11:02 AM   #1
raskol
Member
 
Registered: Mar 2008
Posts: 51

Rep: Reputation: 15
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.
 
Old 03-28-2008, 03:23 PM   #2
abolishtheun
Member
 
Registered: Mar 2008
Posts: 183

Rep: Reputation: 31
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Emacs Lisp - buffer name as part of compile-command jantman Programming 4 10-02-2006 08:32 PM
Emacs LISP - function and keymap? jantman Programming 5 09-28-2006 11:59 AM
LISP or COMON LISP Compiler for Debian carspidey Programming 3 04-19-2006 07:46 AM
Constant errors during "make" or "make install" with SUSE 10.1 Alpha 4 TehFlyingDutchman Linux - Software 3 12-30-2005 06:25 PM
Lisp, emacs-lisp aizkorri Programming 1 09-04-2002 06:16 PM


All times are GMT -5. The time now is 03:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration