From: shin'ya TAKAMURA
Subject: Load files
Date: 
Message-ID: <328auv$fdh@hemp.imel.kyoto-u.ac.jp>
Im a beginner of Lisp programmer. Im using clisp (how much
popular is this?).

I have a question.
I want to load all the *.l files in the current directory 
ether in starting lisp or after started lisp.
Do you have any good idea?

Thanks in advance for your email reply or following.

--+--+--+--+--+--+
 Takamura Shinya
--+--+--+--+--+--+
From: Eyvind Ness
Subject: Re: Load files
Date: 
Message-ID: <EYVIND.94Aug10100755@bingen.hrp.no>
  ;; Im a beginner of Lisp programmer. Im using clisp (how much
  ;; popular is this?).

I guess it's one of the most popular public domain Lisps.

  ;; I have a question.
  ;; I want to load all the *.l files in the current directory 
  ;; ether in starting lisp or after started lisp.
  ;; Do you have any good idea?

Well, loading all the files in the current directory is not always such
a good idea, because quite often, there are dependencies -- one file
should always be loaded first, another file should be loaded only after
a third file has been loaded etc.

I would suggest making a single, top-level file, that does what you want
(.i.e loading all files), like:

;;; this is the top-level file:
(load "file1")
(load "file2")
(load "file3")
(load "file4")
...

If you still insist on loading everything, you can take a look at the
function DIRECTORY. E.g.

    (mapcar #'load
      (directory (make-pathname :name :wild :type "fasl")))

substitute "fasl" with whatever is the default extension for your
compiled binaries in CLISP.

  ;; Thanks in advance for your email reply or following.

You're welcome.

Eyvind.