[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gcl-devel] strange warning
From: |
Camm Maguire |
Subject: |
Re: [Gcl-devel] strange warning |
Date: |
28 Nov 2004 12:46:03 -0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Greetings, and thanks for your feedback!
This has been fixed in CVS head, aka 2.7.0 (not yet released).
In sum all you should need is to replace the following line in
/usr/lib/gcl-2.6.5/cmpnew/gcl_lfun_list.lsp:
(DEFSYSFUN 'LAST "Llast" '(T) 'T NIl NIL)
with
(DEFSYSFUN 'LAST "Llast" '(T *) 'T NIl NIL)
and load it into your image.
I'd like to do away with this file eventually.
Take care,
Andreas Eder <address@hidden> writes:
> Hi,
>
> when compiling maxima, i found a strange warning concerning 'last'.
>
> I can reproduce it with the following simple code:
>
> GCL (GNU Common Lisp) 2.6.5 ANSI Nov 26 2004 08:52:13
> Source License: LGPL(gcl,gmp), GPL(unexec,bfd)
> Binary License: GPL due to GPL'ed components: (READLINE BFD UNEXEC)
> Modifications of this banner must retain notice of a compatible license
> Dedicated to the memory of W. Schelter
>
> Use (help) to get some basic information on how to use GCL.
>
> >(defun testit (l n) (last l n))
>
> >(compile 'testit)
>
> Compiling gazonk0.lsp.
> End of Pass 1.
> ; (DEFUN TESTIT) is being compiled.
> ;; Warning: Wrong number of args for LAST: 2 instead of 1.
> End of Pass 2.
> OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
> Finished compiling gazonk0.lsp.
> Loading gazonk0.o
> start address -T 0x859c950 Finished loading gazonk0.o
> #<compiled-function TESTIT>
>
>
> The standard says, tha 'last' should accept 2 args and in fact it works!
> >(testit '(1 2 3 4 5 6) 2)
>
> (5 6)
>
>
> So, I guess, this is a remnant of the time when gcl was not as
> ansi-conformant as it is now.
> Nevertheless it is uncomforting to see such a warning message.
>
> I hope you can make sense out of this message.
> Keep up the good work.
>
> Andreas
> --
> Wherever I lay my .emacs, there's my $HOME.
>
>
> _______________________________________________
> Gcl-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/gcl-devel
>
>
>
--
Camm Maguire address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah