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


Groups > comp.lang.forth > #42450

Re: Could Forth be getting a bit of traction?

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.lang.forth
Subject Re: Could Forth be getting a bit of traction?
Date 2015-10-08 07:29 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <2015Oct8.092943@mips.complang.tuwien.ac.at> (permalink)
References <muv78t$8l8$1@dont-email.me> <fec19870-4152-484e-bceb-3e34ecb209c9@googlegroups.com>

Show all headers | View raw


Howerd <howerdo@yahoo.co.uk> writes:
>Jason, Anton, Bernd, Marcel, Stephen et al : is it possible to use local va=
>riables in a child definition? Does this depend on the implementation, and =
>is it defined/allowed by ANS?

Forth-2012 (and -94) says:

|13.3.3.1 Compilation semantics
|
|d) Separate sets of locals may be declared in defining words before
|DOES> for use by the defining word, and after DOES> for use by the
|word defined.

I.e., the following is standard:

: foo 
  create {: A :} \ A visible here
does>
  {: B :} \ B (and only B) visible here
;

Whether systems other than Gforth implement this correctly I have not
tested.

- anton
-- 
M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
     New standard: http://www.forth200x.org/forth200x.html
   EuroForth 2015: http://www.rigwit.co.uk/EuroForth2015/

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


Thread

Re: Could Forth be getting a bit of traction? "WJ" <w_a_x_man@yahoo.com> - 2015-10-06 01:14 +0000
  Re: Could Forth be getting a bit of traction? Jason Damisch <jasondamisch@yahoo.com> - 2015-10-06 10:47 -0700
    Re: Could Forth be getting a bit of traction? Chris Curl <ccurl609@gmail.com> - 2015-10-06 11:01 -0700
      Re: Could Forth be getting a bit of traction? Jason Damisch <jasondamisch@yahoo.com> - 2015-10-06 11:27 -0700
      Re: Could Forth be getting a bit of traction? lehs <skydda.barnen@gmail.com> - 2015-10-06 12:08 -0700
  Re: Could Forth be getting a bit of traction? Howerd <howerdo@yahoo.co.uk> - 2015-10-06 14:06 -0700
    Re: Could Forth be getting a bit of traction? Jason Damisch <jasondamisch@yahoo.com> - 2015-10-06 16:15 -0700
      Re: Could Forth be getting a bit of traction? Chris Curl <ccurl609@gmail.com> - 2015-10-06 21:48 -0700
    Re: Could Forth be getting a bit of traction? stephen@mpeforth.com (Stephen Pelc) - 2015-10-07 12:19 +0000
      Re: Could Forth be getting a bit of traction? Mark Wills <markwills1970@gmail.com> - 2015-10-07 07:40 -0700
        Re: Could Forth be getting a bit of traction? Michael Barry <barrym95838@yahoo.com> - 2015-10-07 08:27 -0700
          Re: Could Forth be getting a bit of traction? Coos Haak <chforth@hccnet.nl> - 2015-10-07 17:40 +0200
            Re: Could Forth be getting a bit of traction? franck.bensusan@gmail.com - 2015-10-07 10:50 -0700
              Re: Could Forth be getting a bit of traction? Coos Haak <chforth@hccnet.nl> - 2015-10-07 22:37 +0200
                Re: Could Forth be getting a bit of traction? franck.bensusan@gmail.com - 2015-10-07 23:22 -0700
          Re: Could Forth be getting a bit of traction? "Elizabeth D. Rather" <erather@forth.com> - 2015-10-07 09:14 -1000
          Array Style (was Re: Could Forth be getting a bit of traction?) Howerd <howerdo@yahoo.co.uk> - 2015-10-07 13:23 -0700
        Re: Could Forth be getting a bit of traction? Howerd <howerdo@yahoo.co.uk> - 2015-10-07 13:20 -0700
      Re: Could Forth be getting a bit of traction? rickman <gnuarm@gmail.com> - 2015-10-07 12:13 -0400
        Array Style ( was Re: Could Forth be getting a bit of traction? ) Howerd <howerdo@yahoo.co.uk> - 2015-10-07 13:36 -0700
          Re: Array Style ( was Re: Could Forth be getting a bit of traction? ) rickman <gnuarm@gmail.com> - 2015-10-07 17:39 -0400
      Array Style ( was Re: Could Forth be getting a bit of traction? ) Howerd <howerdo@yahoo.co.uk> - 2015-10-07 13:16 -0700
    Re: Could Forth be getting a bit of traction? mhx@iae.nl - 2015-10-07 10:46 -0700
      Array Style ( was Re: Could Forth be getting a bit of traction? ) Howerd <howerdo@yahoo.co.uk> - 2015-10-07 13:39 -0700
        Re: Array Style ( was Re: Could Forth be getting a bit of traction? ) mhx@iae.nl - 2015-10-07 15:01 -0700
          Re: Array Style ( was Re: Could Forth be getting a bit of traction? ) Roelf Toxopeus <rt4all@notthis.hetnet.nl> - 2015-10-09 22:05 +0200
    Re: Could Forth be getting a bit of traction? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-10-08 07:29 +0000

csiph-web