🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.xerox
Article #633

'provide' and 'require' and compiled files

#633
From: Ulf Dahlen
Date: Fri, 27 Jan 1989 09:24
30 lines
1606 bytes
How is 'provide' and 'require' implemented in existing CL-implementations?
I would like 'require' to search for the compiled file first, and load it if
it's found. Xerox Lisp has a 'require' that doesn't bother about compiled
files. This makes it almost necessary to use the InterLISP function 'FILESLOAD'
and that will make programs less portable.

Let's say I have a file submodule that does the following:

(provide 'submodule)
;;; rest of file

Then say I compile this file, getting a submodule.fasl (or whatever extension
is used). If I have another file with these statements:

(provide 'mainmodule)
(require 'submodule)
;;; rest of file

I would like this file to load submodule.fasl, not submodule.lisp. The fact
that the extension for compiled files is not stated in CLtL, makes it
impossible to write (require 'submodule 'submodule.fasl) or something like
that.

__________
Ulf Dahlen
Dept of Computer & Info Science, University of Linkoping, Sweden
Troskaregatan 51:23       |     uda@ida.liu.se
S-583 30  LINKOPING       |     uda@majestix.liu.se, uda@majestix.UUCP
SWEDEN                    |     {mcvax,munnari,seismo}!enea!liuida!uda
"The beginning is a very delicate time."
Technical Details
Message-ID: <1168@mina.liu.se>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdcad!sun!pitstop!texsun!convex!uunet!mcvax!enea!kth!draken!liuida!uda

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdcad!sun!pitstop!texsun!convex!uunet!mcvax!enea!kth!draken!liuida!uda
From: uda@mina.liu.se (Ulf Dahlen)
Newsgroups: comp.sys.xerox,comp.lang.lisp
Subject: 'provide' and 'require' and compiled files
Message-ID: <1168@mina.liu.se>
Date: 27 Jan 89 09:24:47 GMT
Organization: CIS Dept, Univ of Linkoping, Sweden
Lines: 30