Article View: news.software.readers
Article #233376Re: Slrn
From: John E. Davis
Date: Fri, 22 May 2009 20:31
Date: Fri, 22 May 2009 20:31
17 lines
1385 bytes
1385 bytes
I wrote:
> FWIW, the test can also be written as:
> #v+
> if ((isvisible==3) xor show_article)
> call ("hide_article");
> #v-
I forgot to mention that the above assumes that show_article is either
0 or 1. For 0 or non-0, the above should be written:
#v+
if ((isvisible==3) xor (show_article != 0))
call ("hide_article");
#v-
The reason for the distinction is that `xor' is a bitlevel operator.
Thanks, --John
Technical Details
Message-ID:
<slrnh1e2sc.p5b.jed@aluche.mit.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newspeer.monmouth.com!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mailReferences:
<slrnh1d5up.1ho.r.trev@ccla-05.fastwebit.ofc> <20090522130856.698.slrn@krille.blacktrash.org> <slrnh1dpa0.l3l.jed@aluche.mit.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrnh1e2sc.p5b.jed@aluche.mit.edu> Subject: Re: Slrn Date: Fri, 22 May 2009 20:31:08 +0000 From: "John E. Davis" <jed@jedsoft.org> References: <slrnh1d5up.1ho.r.trev@ccla-05.fastwebit.ofc> <20090522130856.698.slrn@krille.blacktrash.org> <slrnh1dpa0.l3l.jed@aluche.mit.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newspeer.monmouth.com!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail Newsgroups: news.software.readers Reply-To: davis@space.mit.edu User-Agent: slrn/pre1.0.0-11 (Linux) Lines: 17 NNTP-Posting-Host: ALUCHE.MIT.EDU X-Trace: 1243024268 senator-bedfellow.mit.edu 511 18.75.2.45