🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #56586

Re: slrn 's' command, slight misfeature?

#56586
From: blue... Dawn Owens-Nicholson
Date: Sun, 09 Jan 2000 00:00
35 lines
2163 bytes
Thomas Schultz wrote:
> This does not cause slrn to re-sort the articles, which is the effect
> I want to achieve.

You're right and that's odd--I could have sworn it did in previous versions.

> Okay, I changed this everywhere I used it. I guess loops without
> "body" (correct term?) are bad style anyway...

It depends--sometimes there's no other way to concisely do something than a
loop with no body.  This is kind of a contrived example, but using
Group_Move->up() and Group_Move->down() (both of which I posted a while
ago), there's no way to move a group to the top or bottom of the group list
as concise as:

  while (Group_Move->up (1));          % top of list
  while (Group_Move->down (1));        % bottom of list

It's slightly contrived because I could have changed how they work, but I
thought it was best to mimic group_up_n()/group_down_n().

> I chose the second alternative. Would the third alternative really be
> more than a less readable form of it?

Sure, it's not uncommon in C circles to see it done that way.  It's
completely up to you.

> I agree and in other macros, I spend some effort to achieve this
> myself. However in this case, preserving the collapse status of the
> display would be useless since slrn collapses all threads anyway when
> re-sorting the articles.

Ah, I should have thought of that.
Technical Details
Message-ID: <slrn87fmin.igo.bluemoon@ux6.cso.uiuc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
References: <slrn876gun.tul.cgreen@shell.x-1.net> <slrn87aebn.1un.tststs@starflower.tststs.ddns.org> <slrn87d8vd.1lc.bluemoon@ux6.cso.uiuc.edu> <slrn87f85o.4ms.tststs@starflower.tststs.ddns.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrn87fmin.igo.bluemoon@ux6.cso.uiuc.edu>
Subject: Re: slrn 's' command, slight misfeature?
Date: Sun, 09 Jan 2000 00:00:00 +0000
From: blue...@ux6.cso.uiuc.edu (Dawn Owens-Nicholson)
References: <slrn876gun.tul.cgreen@shell.x-1.net> <slrn87aebn.1un.tststs@starflower.tststs.ddns.org> <slrn87d8vd.1lc.bluemoon@ux6.cso.uiuc.edu> <slrn87f85o.4ms.tststs@starflower.tststs.ddns.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
X-Deja-AN: 570180612
Organization: University of Illinois at Urbana-Champaign
User-Agent: slrn/0.9.6.2 (HP-UX)
Newsgroups: news.software.readers,alt.lang.s-lang