print ( false ) bug 5.26.0



I can confirm that setting the display2d-variable
governs the output of true/false: t,nil when false,
true,false when true.

Thanks for the patch.

Oliver

P.S. Wouldn't it be reasonable for the function
bug_report to show also the values of all such
flags?

On Mon, Feb 27, 2012 at 11:41:22PM -0700, Robert Dodier wrote:
> On 2/27/12, Edwin Woollett <woollett at charter.net> wrote:
> 
> > print (false)  ----> nil    in 5.26.0
> > print (false)  ----> false   in 5.25.1
> >
> > print (true)  -----> t   in 5.26.0
> > print (true) ------> true    in 5.25.1
> 
> I'm guessing you have display2d:false by default.
> If so, I think the following patch will fix the bug.
> 
> best,
> 
> Robert Dodier
> 
> PS.
> 
> diff --git a/src/grind.lisp b/src/grind.lisp
> index de1ee5d..cee89e9 100644
> --- a/src/grind.lisp
> +++ b/src/grind.lisp
> @@ -297,12 +297,12 @@
>        (msz nil l r)
>        (do ((nl) (w 0))
>            ((null (cdr x))
> -           (setq nl (cons (if (atom (car x))
> +           (setq nl (cons (if (stringp (car x))
>                                (msz (makestring (car x)) l r)
>                                (msize (car x) l r lop rop))
>                            nl))
>             (cons (+ w (caar nl)) (nreverse nl)))
> -        (setq nl (cons (if (atom (car x))
> +        (setq nl (cons (if (stringp (car x))
>                             (msz (makestring (car x)) l r)
>                             (msize (car x) l r lop rop))
>                         nl)
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima

-- 
Dr. Oliver Kullmann
Department of Computer Science
College of Science, Swansea University
Faraday Building, Singleton Park
Swansea SA2 8PP, UK
http://cs.swan.ac.uk/~csoliver/