Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: (test) ? a:b Date: Mon, 27 Oct 2014 22:04:02 +1300 Lines: 15 Message-ID: References: <54476af8$0$21651$426a74cc@news.free.fr> <7839376e-fc27-4299-ae63-4ddf17ef9a8a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net y8rjU7jPgZMMAaNo98u9QgpCmgQQjMRWaBOfLoXMc+yCnmfW94 Cancel-Lock: sha1:E/ZeXWYv/KoKTScicr/h8kXtEbo= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: Xref: csiph.com comp.lang.python:79773 Michael Torrie wrote: > As far as I can tell, no BASIC dialect I've looked at (DOS and Linux > worlds only), has ever had any logical operators like AND (&&), OR (||), > and NOT (!). They only appear to have bitwise operators (&,|,~ C > equivalent). The fact that comparison operators returned 0 and -1 made > the bitwise operators function the same as logical. Applesoft used 0 and 1, so its NOT definitely wasn't bitwise on the whole number. I can't remember what its AND and OR did for numbers other than 0 or 1 (if I even thought to try it), but since it did all arithmetic in floating point, I suspect they were logical rather than bitwise. -- Greg