all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 23111@debbugs.gnu.org
Subject: bug#23111: 25.0.92; logxor leading zero missed
Date: Fri, 25 Mar 2016 19:57:17 +0100	[thread overview]
Message-ID: <56F58A0D.2020208@easy-emacs.de> (raw)
In-Reply-To: <87egayy2bu.fsf@web.de>



On 25.03.2016 17:00, Michael Heerdegen wrote:
> Andreas Röhler <andreas.roehler@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






      reply	other threads:[~2016-03-25 18:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-25  9:17 bug#23111: 25.0.92; logxor leading zero missed Andreas Röhler
2016-03-25 16:00 ` Michael Heerdegen
2016-03-25 18:57   ` Andreas Röhler [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56F58A0D.2020208@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=23111@debbugs.gnu.org \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.