Greetings!
Barton Willis <willisb at unk.edu> writes:
> Thanks for finding this bug. I'll fix it and look for additional such errors in nset.
>
Thanks!
> Curious: did you find this bug by reading the source, or did the bug cause an error and that prompted you to
> look at the source?
>
In working on gcl, had a version with immediate and boxed fixnums, and
this one testsuite failure showed up. In general, most lisp
implementations have one fixnum 0, so eql can be accelerated to eq, and
the bug would never appear.
Take care,
>
>
>
> --Barton
>
> ________________________________________
> From: maxima-bounces at math.utexas.edu [maxima-bounces at math.utexas.edu] on behalf of Camm Maguire [camm at maguirefamily.org]
> Sent: Saturday, September 28, 2013 12:36
> To: Robert Dodier
> Cc: maxima at math.utexas.edu
> Subject: nset.lisp bug?
>
> Greetings! nset.lisp:
>
> (defun $num_distinct_partitions (n &optional lst)
> (cond ((eq n 0) 1)
> ...
>
> Shouldn't that be eql, or equal?
>
> Take care,
> --
> Camm Maguire camm at maguirefamily.org
> ==========================================================================
> "The earth is but one country, and mankind its citizens." -- Baha'u'llah
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
>
>
>
--
Camm Maguire camm at maguirefamily.org
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah