list of loaded mac files



On Sun, Aug 12, 2007 at 12:19:34PM -0400, sen1 at math.msu.edu wrote:
> Hi Robert,
>   Here is a sample of the kind of thing that happens.

> (%i3) mload("file_name.mac");
> Hello!
...
> (%o3)                                true
> (%i4) loaded_files();
> (%o4)                         [file_name, ., mac]

I think the question is: why are you writing the list of loaded files
out to the disk, rather than simply storing them in a list?

loaded_files_list:[];

mload(filename) := block([f:load(filename)],
			loaded_files_list:cons(f,loaded_files_list));

or something like that

writing them out to the disk means they can potentially be stale, or
conflict between different maxima sessions, or whatever. There seems
to be no advantage.


-- 
Daniel Lakeland
dlakelan at street-artists.org
http://www.street-artists.org/~dlakelan