autoloading messages, was: Maxima 5.12.0 rc1 in cvs & SF download



Am 13 Apr 2007 um 10:47 hat Robert Dodier geschrieben:

> > It seems that this is depending on the Lisp that Maxima uses.
> 
> Yes. GCL does not complain about redefined functions,
> Clisp and SBCL do. Dunno about other Lisps.

Hi Robert,

I just committed some changes to max_ext.lisp. 

I checked them in Windows (Maxima 5.11 with gcl) and in Suse Linux  (Maxima 5.11 with 
clisp). With gcl there are no warnings (like before), with clisp I experienced the following 

(%i1) load("/home/volker/max_ext.fas");
(%o1) 			   /home/volker/max_ext.fas

1.
(%i2) printf(true,"Hello world!");
;; Loading file /usr/share/maxima/5.11.0/share/contrib/stringproc/stringproc.lisp ...
;; Loaded file /usr/share/maxima/5.11.0/share/contrib/stringproc/stringproc.lisp
Hello world!
(%o2) 				     false

All functions from stringproc were autoloaded without any messages, except printf, which is 
a macro. It shows the load path. I didn't find a possibility of a quiet load.

2.
(%i3) eval_string("diff(x,x);");
(%o3) 				       1

Functions from numericalio and eval_string are autoloaded without messages.

3.
Functions from linearalgebra only showed the following message

(%i4) rowswap(  matrix([1,2],[3,4]),1,2 );
WARNING: DEFUN/DEFMACRO: redefining function $COPY in
         /usr/share/maxima/5.11.0/share/linearalgebra/linalg-utilities.lisp,
         was defined in
         /var/local/home/users/r/ro/robert_dodier/tmp/BUILD/maxima-5.11.0/src/binary-
clisp/comm2.fas
				   [ 3  4 ]
(%o4) 				   [ 	  ]
				   [ 1  2 ]

Perhaps you know where this warning comes from.

Please check how it looks like with sbcl (other Lisps). If the situation is similar to clisp then 
please include my commit into the next release candidate. Let me know. 

I regard my commits just as workarounds. In long terms aload.lisp and max_ext.lisp should 
have a clear design. The helper functions in aload.lisp should work for all Lisp 
implementations.

Best Volker