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


Groups > de.comp.lang.forth > #346

Re: Ausgabe umleiten - Problem

From Bernd Paysan <bernd.paysan@gmx.de>
Newsgroups de.comp.lang.forth
Subject Re: Ausgabe umleiten - Problem
Date 2015-09-01 02:39 +0200
Organization A noiseless patient Spider
Message-ID <ms2s12$3l4$1@dont-email.me> (permalink)
References <3f852922-51d7-44e2-9331-91538d86eccf@googlegroups.com> <mrqp47$mpi$1@dont-email.me> <df66c2d2-53ec-4bba-8f34-83d1069273e4@googlegroups.com>

Show all headers | View raw


djc wrote:

> Danke!
> 
> Gibt es für solche Fälle ein
> gforth-workaround [IF] \ gforth hat hier einen kleinen Schluckauf
> : murx a b c ;
> [ELSE] \ standard Forth
> : murx d e f ;
> [THEN]

Das [IS] in den eckigen Klammern ist ja schon extrem Gforth-spezifisch. 
Nimm' einfach das IS ganz ohne Klammern, so wie es im 2012-Standard ist. Das 
funktioniert in Gforth (jede Version) und außerhalb von Gforth, wobei 
außerhalb von Gforth halt EMIT und TYPE nicht notwendigerweise deferred 
sind. Im neusten Snapshot ist das [IS]-Problem behoben, da geht das [IS] 
dann mit allem, was sich mit TO oder IS zuweisen lässt.

Die Environment-Query von s" gforth" liefert die Version und true zurück, 
damit kann man auf Gforth testen.  Außerdem kannst du [IFDEF] gforth, oder 
standardkonform [defined] gforth [IF] machen.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o ID: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
http://bernd-paysan.de/

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


Thread

Ausgabe umleiten - Problem djc <ciesinger@gmx.net> - 2015-08-28 14:01 -0700
  Re: Ausgabe umleiten - Problem djc <ciesinger@gmx.net> - 2015-08-28 14:06 -0700
  Re: Ausgabe umleiten - Problem Bernd Paysan <bernd.paysan@gmx.de> - 2015-08-29 01:01 +0200
    Re: Ausgabe umleiten - Problem djc <ciesinger@gmx.net> - 2015-08-31 13:09 -0700
      Re: Ausgabe umleiten - Problem Bernd Paysan <bernd.paysan@gmx.de> - 2015-09-01 02:39 +0200
        Re: Ausgabe umleiten - Problem djc <ciesinger@gmx.net> - 2015-09-01 02:25 -0700

csiph-web