From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: 7 logical-xor implementations in source tree Date: Tue, 23 Jul 2019 10:08:22 +0100 Message-ID: <877e896ruh.fsf@tcd.ie> References: <87tvbd9a8p.fsf@oremacs.com> <86wog9gn5n.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="36554"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Andy Moreton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 23 11:08:31 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hpqmc-0009Ll-IM for ged-emacs-devel@m.gmane.org; Tue, 23 Jul 2019 11:08:30 +0200 Original-Received: from localhost ([::1]:40462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpqmb-0006Fp-K5 for ged-emacs-devel@m.gmane.org; Tue, 23 Jul 2019 05:08:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41715) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpqmY-0006Fi-Jj for emacs-devel@gnu.org; Tue, 23 Jul 2019 05:08:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hpqmX-0002hM-Nt for emacs-devel@gnu.org; Tue, 23 Jul 2019 05:08:26 -0400 Original-Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:54019) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hpqmX-0002fk-8G for emacs-devel@gnu.org; Tue, 23 Jul 2019 05:08:25 -0400 Original-Received: by mail-wm1-x341.google.com with SMTP id x15so37727746wmj.3 for ; Tue, 23 Jul 2019 02:08:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=PNPygYotEuB8m3RI4OQY47qsqqOeIj0U+cHEAz+j5ok=; b=cW2hc5a5RYRWyv8vDTzwzGCwHbmmM344m3Qmn9jHDsCga1riXdKbcbTzgMuI5ctCGn kNJKMDT7ct+MICRUtYkAiz7X2h1BzE0bKfjjqoopCKZ/woCxUjEv+phKrThsSbhCKN8I KS3OITD71z11VmGwuwUMobtRIOhKP7x2g/AYNVG8yRKgWmHngYJ4NJuMl/e197ZNmHRI D4C8LkaXDEqmIqTSjzx3mYMQkNwPu/wsAU1CAvOtIUbBemgV0+xzB8FcHyq+m2jJwJQy QbPbtzQsf6UxjTYA+7I+AAi/0MZvTUOCjIZrrzaN8mV9OJYOAbGHq3BMbn3TYSIv0GTP pmJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=PNPygYotEuB8m3RI4OQY47qsqqOeIj0U+cHEAz+j5ok=; b=kJFcltfgNkp1wdtQLTRZy5QjQwASP68vgQFPi8aC/dOF/v57ytx2Szvt5o9G5m+oGb Q84EUZLC5LrZxxmLE9ePcrrDVahQTqDBNe1RFXoU7EPSR+F/A24IkbpZDBAnnI40Jj9M WRHQ6u3nSykxIwE4yW5uQGmP/ASMWg4LNZ0BRg/kUc5aBEF8IQJhYT9KaaatFlOaKixd xSn6Xi1Xsl1sgqut3zFRSKhNWwN396Mq2LpSYjKrZayXoyp815y7t9gEYTomQWDFscKo PnJLBHTNgB46oiaWX6d4IFQsYICu7Bgj0c1QOnjvRGSKKyC6jFIC2unFCKH2XTzbQ2Ze zbAg== X-Gm-Message-State: APjAAAXz7ZPoLMNSOV2pzNqWrQnjTgDXBQ7/8vLBmuiv25yYO5hS31T1 3B25P9gd05tDQ9fZaaTCP3/AJg== X-Google-Smtp-Source: APXvYqzCxq5fgLIxYJ6+wPqM+rqA1CJSFgAUOhSXJZSbW9A4MDRfU+oOp35f+lncw6/LrbxD/Y22ag== X-Received: by 2002:a1c:2e09:: with SMTP id u9mr68589329wmu.137.1563872903841; Tue, 23 Jul 2019 02:08:23 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:1f68:7ff5:120d:64e]) by smtp.gmail.com with ESMTPSA id v65sm47459636wme.31.2019.07.23.02.08.23 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 23 Jul 2019 02:08:23 -0700 (PDT) In-Reply-To: <86wog9gn5n.fsf@gmail.com> (Andy Moreton's message of "Tue, 23 Jul 2019 09:39:32 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238827 Archived-At: Andy Moreton writes: > On Mon 22 Jul 2019, Oleh Krehel wrote: > >> I found myself in need of a logical-xor function. There's `xor' defined in >> array.el. But I don't want my package to depend on array.el. So I grepped the >> git source of some other definition of `xor'. And I found 7 results: 7 >> functions >> doing the same thing, none of them in a satisfactory place. > > Is `logxor' what you are looking for ? No, logxor is a bitwise operation on integers, whereas the proposed xor operates on booleans, returning non-nil only if one of its arguments is nil and the other is non-nil. -- Basil