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


Groups > comp.lang.forth > #28452

Re: suggestions for word names?

From Marcos Cruz <null_email_so_use_my_contact_page@programandala.net>
Newsgroups comp.lang.forth
Subject Re: suggestions for word names?
Date 2014-02-15 15:41 +0000
Organization Aioe.org NNTP Server
Message-ID <ldo1rt$ck1$1@speranza.aioe.org> (permalink)
References <ldlthk$bga$1@speranza.aioe.org> <op.xbau38lc5zc71u@localhost>

Show all headers | View raw


En/Je/On 2014-02-15, Rod Pemberton escribió/skribis/wrote:
> On Fri, 14 Feb 2014 15:15:48 -0500, Marcos Cruz  wrote:
>>   2>r dup dup 2r>  ( x1 x2 x3 -- x1 x1 x1 x2 x3 )
>>   >r dup dup r>  ( x1 x2 -- x1 x1 x1 x2 )

> For the fist sequence "2>r dup dup 2r>",
> That sequence is also equivalent to this:
>    >r nup nup r>
> The second sequence ">r dup dup r>" is:
>    nup nup

>    nup ( x1 x2 -- x1 x1 x2 )

Thank you, Rod. I didn't know that word. I think it's what I need, a
common usage word that can make those repeated code pieces simpler or
easier to factor.

> This depends on how efficiently nup is implemented

Even if implemented in high level (I use Gforth and it doesn't include
it), 'nup' is worth in this case because the speed is not a problem.

Thank you.

-- 
Marcos Cruz
http://programandala.net

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


Thread

suggestions for word names? Marcos Cruz <null_email_so_use_my_contact_page@programandala.net> - 2014-02-14 20:15 +0000
  Re: suggestions for word names? "Elizabeth D. Rather" <erather@forth.com> - 2014-02-14 10:30 -1000
    Re: suggestions for word names? Marcos Cruz <null_email_so_use_my_contact_page@programandala.net> - 2014-02-14 22:07 +0000
      Re: suggestions for word names? humptydumpty <ouatubi@gmail.com> - 2014-02-15 10:00 -0800
        Re: suggestions for word names? Stefan Mauerhofer <smauerhofer@androsoft.ch> - 2014-02-18 05:04 -0800
          Re: suggestions for word names? m.a.m.hendrix@tue.nl - 2014-02-18 05:45 -0800
          Re: suggestions for word names? "Rod Pemberton" <dont_use_email@xnohavenotit.cnm> - 2014-02-18 18:17 -0500
            Re: suggestions for word names? Stefan Mauerhofer <smauerhofer@androsoft.ch> - 2014-02-18 21:38 -0800
            Re: suggestions for word names? Mark Wills <markrobertwills@yahoo.co.uk> - 2014-02-19 02:00 -0800
              Re: suggestions for word names? Paul Rubin <no.email@nospam.invalid> - 2014-02-19 02:44 -0800
              Re: suggestions for word names? albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-02-19 20:13 +0000
          Re: suggestions for word names? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-02-19 03:49 -0600
    Re: suggestions for word names? Hans Bezemer <the.beez.speaks@gmail.com> - 2014-02-15 14:55 +0100
  Re: suggestions for word names? "Rod Pemberton" <dont_use_email@xnohavenotit.cnm> - 2014-02-14 20:44 -0500
    Re: suggestions for word names? Hans Bezemer <the.beez.speaks@gmail.com> - 2014-02-15 14:52 +0100
      Re: suggestions for word names? Coos Haak <chforth@hccnet.nl> - 2014-02-15 15:43 +0100
      Re: suggestions for word names? "Rod Pemberton" <dont_use_email@xnohavenotit.cnm> - 2014-02-15 12:06 -0500
        Re: suggestions for word names? Coos Haak <chforth@hccnet.nl> - 2014-02-15 18:30 +0100
        Re: suggestions for word names? Hans Bezemer <the.beez.speaks@gmail.com> - 2014-02-18 16:45 +0100
          Re: suggestions for word names? "Rod Pemberton" <dont_use_email@xnohavenotit.cnm> - 2014-02-18 18:17 -0500
            Re: suggestions for word names? Hans Bezemer <the.beez.speaks@gmail.com> - 2014-02-19 09:44 +0100
            Re: suggestions for word names? Hans Bezemer <the.beez.speaks@gmail.com> - 2014-02-19 09:47 +0100
              Re: suggestions for word names? Paul Rubin <no.email@nospam.invalid> - 2014-02-19 01:38 -0800
                Re: suggestions for word names? Hans Bezemer <the.beez.speaks@gmail.com> - 2014-02-19 16:59 +0100
            Re: suggestions for word names? Hans Bezemer <the.beez.speaks@gmail.com> - 2014-02-19 10:11 +0100
              Re: suggestions for word names? "Rod Pemberton" <dont_use_email@xnohavenotit.cnm> - 2014-02-19 05:39 -0500
                Re: suggestions for word names? Stefan Mauerhofer <smauerhofer@androsoft.ch> - 2014-02-19 03:31 -0800
    Re: suggestions for word names? Marcos Cruz <null_email_so_use_my_contact_page@programandala.net> - 2014-02-15 15:41 +0000

csiph-web