From: Thomas A. Russ
Subject: Re: 2 simple commonlisp questions
Date: 
Message-ID: <TAR.95Apr6090549@hobbes.ISI.EDU>
In article <··········@nkosi.well.com> ····@well.sf.ca.us (Amy Caplan) writes:
 > Two simple questions:
 > 
 > 1. If one does (declare (inline func)), is this only applicable to the
 > current file / can an inline declaration *ever* have any effect across
 > files?

Declarations should only affect things that are within their scope.
Some implementations, however, do more aggressive in-lining of
functions, particularly if you have speed compiler option set high and
the debug set low.

If you want the effect to be global, then you will need to use the
declaration at the top level in a file.  It will then have an effect
across files.  To be useful, though, you will have to have the function
defined before any place that uses it, since in-lining requires the
function definition.

 > 2. If there are some objects (e.g. structures with arrays as members)
 > in memory, is there a way of printing them to disk and later reading
 > back equivalent things?  [I tried setting *print-array* to true]

I would have expected this to work.  Perhaps you could describe what
results you get?  Also, what lisp implementation are you using?

--
Thomas A. Russ,  USC/Information Sciences Institute          ···@isi.edu