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


Groups > comp.lang.forth > #10804

Re: Backquoted Macros

Newsgroups comp.lang.forth
From Albert van der Horst <albert@spenarnc.xs4all.nl>
Subject Re: Backquoted Macros
Date 2012-04-03 09:33 +0000
Message-ID <m1wd7u.5i5@spenarnc.xs4all.nl> (permalink)
Organization Dutch Forth Workshop
References <21091167.276.1333034944725.JavaMail.geo-discussion-forums@yneo2>

Show all headers | View raw


In article <21091167.276.1333034944725.JavaMail.geo-discussion-forums@yneo2>,
Helmar Wodtke  <helmwo@gmail.com> wrote:
>Hi,
>
>I'm working on some documentation to my Forth system (forth4p) and came acr=
>oss the nice invention of "Backquoted Macros" from FreeForth again.
>
>Does anyone else than FreeForth and my Forth use this?
>
>It's very practical:
>
>: 2dup` over` over` ;

This syntax is all wrong, IMO.  OVER and 2DUP are not special,
the compilation is. So it should be

        `:` 2DUP   OVER OVER `;`

or just

        : 2DUP   OVER OVER ;  INLINED

By the way, there is no precedent of a compiling word that gets a name
from the input stream, and then compiles a definied with that name
mangled. This convention destroys one of the few certainties one has
in reading new Forth code.

<SNIP>

Groetjes Albert

>
>Regards,
>-Helmar


--
-- 
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

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


Thread

Backquoted Macros Helmar Wodtke <helmwo@gmail.com> - 2012-03-29 08:29 -0700
  Re: Backquoted Macros Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-04-03 09:33 +0000
    Re: Backquoted Macros Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-03 06:46 -0700
  Re: Backquoted Macros Hugh Aguilar <hughaguilar96@yahoo.com> - 2012-04-03 03:32 -0700
  Re: Backquoted Macros BruceMcF <agila61@netscape.net> - 2012-04-03 17:02 -0700

csiph-web