🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.teco
Article #3

Re: Religious question -- negative arguments for S

#3
From: Paul Koning
Date: Tue, 08 Sep 1992 21:10
24 lines
1586 bytes
In article <DRW.92Sep8135859@nevanlinna.mit.edu>, drw@nevanlinna.mit.edu (Dale R. Worley) writes:
|>If one searches backwards (using a negative argument to S), is the
|>point left at the beginning of the string (so that -Sstring$ when
|>executed repeatedly finds successive occurrences backwards), or is the
|>point left at the end of the string (as when S searches forward)?
|>
|>Dale
|>
|>Dale Worley		Dept. of Math., MIT		drw@math.mit.edu
|>--
|>Measure with a micrometer.  Mark with chalk.  Cut with an axe.

That's not a religious question..  The answer is "the latter".
The only difference between forward and backward search is the direction
"dot" is moved in between successive compares of the target string
against the buffer contents.  Note, for example, that -S will find the
string that begins at "dot" (since that is the first string compared).
Similarly, -::S and ::S are equivalent.

Now if you want to rephrase that as a religious question, you might ask
"how SHOULD it work".   :-)

	paul
Technical Details
Message-ID: <1992Sep8.211022.3675@nntpd.lkg.dec.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!gossip.pyramid.com!decwrl!deccrl!news.crl.dec.com!news!nntpd.lkg.dec.com!usenet
References: <DRW.92Sep8135859@nevanlinna.mit.edu>

Show Full Headers
Complete Article Headers
Newsgroups: alt.lang.teco
Path: arc1-ca.pugleaf.net!sparky!uunet!gossip.pyramid.com!decwrl!deccrl!news.crl.dec.com!news!nntpd.lkg.dec.com!usenet
From: koning@koning.enet.dec.com (Paul Koning)
Subject: Re: Religious question -- negative arguments for S
Message-ID: <1992Sep8.211022.3675@nntpd.lkg.dec.com>
Lines: 25
Sender: usenet@nntpd.lkg.dec.com (USENET News System)
Reply-To: koning@koning.enet.dec.com
Organization: Digital Equipment Co., distributed systems architecture
References:  <DRW.92Sep8135859@nevanlinna.mit.edu>
Date: Tue, 8 Sep 1992 21:10:22 GMT