πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #233378

Re: Slrn

#233378
From: Christian Ebert
Date: Fri, 22 May 2009 20:45
37 lines
2800 bytes
* John E. Davis on Friday, May 22, 2009:
> On Fri, 22 May 2009 15:52:21 +0200, Christian Ebert <blacktrash@gmx.net>
> wrote:
>>  % display article if it was shown before:
>>  if (isvisible == 3 and show_article == 0 ||
>>      isvisible != 3 and show_article != 0)
>>    call ("hide_article");
> [...]
>> If you S-Lang version is < 2.1 iirc you'd have to replace the ||
>> operators with an orelse construct. Anyway, try it out.
> 
> In this case, short-circuiting operators are not needed.  So, it can
> be coded using `or' in place of `||'.  Note that `||' and `&&'
> short-circuit, whereas `or' and `and' do not.  The old `orelse' and
> `andelse' constructs are obsolete and should not be used.

Now you've got me puzzling (again) what "short-circuiting"
actually means. I believe I understood it once, long ago ...
Time to study slang.txt again ;-)

> FWIW, the test can also be written as:
> #v+
>  if ((isvisible==3) xor show_article)
>    call ("hide_article");
> #v-

Now, that looks cool. Unfortunately it will tie a few more knots
in my brain.

Thanks.

c
-- 
  Was heißt hier Dogma, ich bin Underdogma!
[ What the hell do you mean dogma, I am underdogma. ]
_F R E E_  _V I D E O S_  http://www.blacktrash.org/underdogma/
                          http://www.blacktrash.org/underdogma/index-en.html
Technical Details
Message-ID: <20090522204200.715.slrn@krille.blacktrash.org>
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!border2.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!news.albasani.net!krille.blacktrash.org!not-for-mail
References: <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: <20090522204200.715.slrn@krille.blacktrash.org>
Subject: Re: Slrn
Date: Fri, 22 May 2009 22:45:33 +0200
From: Christian Ebert <blacktrash@gmx.net>
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!border2.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!news.albasani.net!krille.blacktrash.org!not-for-mail
Newsgroups: news.software.readers
Organization: Black Trash Productions <http://www.blacktrash.org/>
Lines: 37
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.albasani.net
 IKBQXhsYwXkW95gKKIz/TUoPfSEqhqhcTcHzam7UONVOpSWl4DApLNKG96VfXCp5vlEHGZSbuZhlEImg6ytP2u9a+nN8UgkT9GfLdGa7RrXFuVjakKmM5ZPO5EZ8xscA
X-Complaints-To: abuse@albasani.net
NNTP-Posting-Date: Fri, 22 May 2009 20:45:42 +0000 (UTC)
X-User-ID: EMBULQuphaumQcY4cqOpUxTGLuLzjHO7MMWY3D31x7c=
X-Face: )&#alA:[x"-#%%./(nuC&8n; #gqM; =mfY&ivRz@Gnv|AD_0l1Uz{fnJ^BW~OX[d;
 /)z!y V
Cancel-Lock: sha1:bBp+Dlks2OYW78giqbaEEzzDGiY=
User-Agent: slrn/pre1.0.0-11/mm/ao/mc (Darwin)
X-NNTP-Posting-Host: jWx6N3HCKhLSe0mLIneQKAi4dmvVm1Aan1TkX/DADJI=
Mail-Copies-To: nobody