Some (not all) Maxima files set a version number; for example
(%i4) load("nset");
(%o4)
c:/msys/1.0/maxinstall/share/maxima/5.9.0.9beta2/share/contrib/nset/nset.lisp
(%i5) get('nset, 'version);
(%o5) 1
When either the file hasn't been loaded or it does not exist, 'get'
returns 'false.' There
is no Maxima file 'larry', so
(%i6) get('larry, 'version);
(%o6) FALSE
Assuming each file sets a version number, maybe you could do something
like
if not(get('nset,'version)) then load("nset")
To set a version number for a file, use ($put '$nset 1 '$version) or
put('nset, 1, 'version).
Maybe this helps.
Barton
Albert Reiner <areiner@tph.tuwien.ac.at>
Sent by: maxima-admin@math.utexas.edu
08/06/2004 08:49 AM
To: maxima <maxima@math.utexas.edu>
cc:
Subject: [Maxima] dependencies
Hi,
how do you keep track of dependencies between different files?
Currently I do something like
if utilities__loaded # true then load("utilities.max");
where every one of the files that may have to be loaded for other
files to work sets a constant like utilities__loaded. Is there a
simpler way?
Regards,
Albert.
_______________________________________________
Maxima mailing list
Maxima@www.math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima