GNU bug report logs - #23111
25.0.92; logxor leading zero missed

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Fri, 25 Mar 2016 09:17:01 UTC

Severity: wishlist

Tags: notabug, wontfix

Found in version 25.0.92

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 23111 <at> debbugs.gnu.org
Subject: bug#23111: 25.0.92; logxor leading zero missed
Date: Fri, 25 Mar 2016 19:57:17 +0100
On 25.03.2016 17:00, Michael Heerdegen wrote:
> Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:
>
>> (logxor 110 011) ==> 101 ; right
>> (logxor 110 101) ==> 11  ; leading zero is missed
> I think this is expected: logxor returns an integer, and "11" and "011"
> are just different printed representations for the same number: 11.  The
> lisp printer can't know that in this special case, it would make sense
> to print 11 differently.  Even if it did, this wouldn't make any
> difference for coding anyway.
>
>
> Michael.

close 23111

Okay, thanks. Nesting it works as expected. Seem no problem indeed.

(logxor (logxor 110 101)(logxor 110 001)) ==> 100





This bug report was last modified 9 years and 95 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.