Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #9766

Re: RfD: TRAVERSE-WORDLIST v4

From "Peter Knaggs" <pjk@bcs.org.uk>
Newsgroups comp.lang.forth
Subject Re: RfD: TRAVERSE-WORDLIST v4
Date 2012-03-01 08:45 +0000
Organization A noiseless patient Spider
Message-ID <op.wahg9yoosu5d0p@david> (permalink)
References <3a561970-391e-4f30-8dc8-049d5942f159@gi10g2000vbb.googlegroups.com> <op.wagis0zjsu5d0p@david> <431f23d7-5c19-42fe-b12f-49a6876e9b2e@gi10g2000vbb.googlegroups.com>

Show all headers | View raw


BruceMcF wrote:

> On Feb 29, 3:20 pm, "Peter Knaggs" <p...@bcs.org.uk> wrote:
>> Alex McDonald wrote:
>> > TRAVERSE-WORDLIST ( x*i wid xt-node -- x'*i ) "traverse-wordlist"
>
>> Do you really mean x*i and x'*i, in which case this is more normally
>> described as x*i and x*j where i and j *may* be equal. The text goes
>> on to say that x = x' in which case this should be x*i and x*i.
>
> I don't think it's intending to say that x=x', I think its intending
> to say i=j, so:
>    ( x*i ... -- x'*i ... )

Of course.

> ... is trying to convey that the parameters can change, even though
> the depth cannot ... since:
>    ( x*i ... -- x*i ... )
>
> ... would imply that the stack parameters are not modified.

No.  If that where the case they simply would not be part of the stack  
description at all.  The fact that they are in the description means they  
may change and that the definition should explain how.

> *HOWEVER* even though changing the stack depth may in many cases not
> be good practice, I don't think the standard should specify that. An
> advisory section might note that normally i=j should apply unless
> there is an overriding reason to do differently.

Agreed.

> So I think it should be amended to:
>    ( x*i ... -- x*j ... )

Agreed.

-- 
Peter Knaggs

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

RfD: TRAVERSE-WORDLIST v4 Alex McDonald <blog@rivadpm.com> - 2012-02-28 05:14 -0800
  Re: RfD: TRAVERSE-WORDLIST v4 anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-02-28 17:18 +0000
    Re: RfD: TRAVERSE-WORDLIST v4 Alex McDonald <blog@rivadpm.com> - 2012-02-28 13:54 -0800
      Re: RfD: TRAVERSE-WORDLIST v4 "Elizabeth D. Rather" <erather@forth.com> - 2012-02-28 12:16 -1000
        Re: RfD: TRAVERSE-WORDLIST v4 anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-02-29 15:42 +0000
          Re: RfD: TRAVERSE-WORDLIST v4 "Elizabeth D. Rather" <erather@forth.com> - 2012-02-29 06:49 -1000
          Re: RfD: TRAVERSE-WORDLIST v4 "Peter Knaggs" <pjk@bcs.org.uk> - 2012-02-29 20:05 +0000
      Re: RfD: TRAVERSE-WORDLIST v4 BruceMcF <agila61@netscape.net> - 2012-02-28 14:40 -0800
        Re: RfD: TRAVERSE-WORDLIST v4 anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-02-29 15:47 +0000
          Re: RfD: TRAVERSE-WORDLIST v4 BruceMcF <agila61@netscape.net> - 2012-02-29 08:13 -0800
    Re: RfD: TRAVERSE-WORDLIST v4 "Peter Knaggs" <pjk@bcs.org.uk> - 2012-02-29 20:07 +0000
  Re: RfD: TRAVERSE-WORDLIST v4 Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-02-29 11:27 +0000
  Re: RfD: TRAVERSE-WORDLIST v4 "Peter Knaggs" <pjk@bcs.org.uk> - 2012-02-29 20:20 +0000
    Re: RfD: TRAVERSE-WORDLIST v4 BruceMcF <agila61@netscape.net> - 2012-02-29 16:44 -0800
      Re: RfD: TRAVERSE-WORDLIST v4 "Peter Knaggs" <pjk@bcs.org.uk> - 2012-03-01 08:45 +0000
        Re: RfD: TRAVERSE-WORDLIST v4 BruceMcF <agila61@netscape.net> - 2012-03-01 16:15 -0800
          Re: RfD: TRAVERSE-WORDLIST v4 "Peter Knaggs" <pjk@bcs.org.uk> - 2012-03-02 09:58 +0000
            Re: RfD: TRAVERSE-WORDLIST v4 BruceMcF <agila61@netscape.net> - 2012-03-02 22:37 -0800
  Re: RfD: TRAVERSE-WORDLIST v4 Alex McDonald <blog@rivadpm.com> - 2012-03-04 14:03 -0800
    Re: RfD: TRAVERSE-WORDLIST v4 "Peter Knaggs" <pjk@bcs.org.uk> - 2012-03-05 13:20 +0000
    Re: RfD: TRAVERSE-WORDLIST v4 anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-03-05 14:18 +0000
  Re: RfD: TRAVERSE-WORDLIST v4 Alex McDonald <blog@rivadpm.com> - 2012-03-27 15:23 -0700

csiph-web