gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gforth] why compiler directives in brackets?


From: Bernd Paysan
Subject: Re: [gforth] why compiler directives in brackets?
Date: Mon, 29 Jul 2013 20:43:41 +0200
User-agent: KMail/4.10.5 (Linux/3.7.10-1.16-desktop; KDE/4.10.5; x86_64; ; )

Am Montag, 29. Juli 2013, 20:30:03 schrieb Marcos Cruz:
> Hello,
> 
> In the Gforth's sources sometimes compiler directives are surrounded by
> 
> brackets inside a definition, not only the condition:
>       : name   [ condition [if] ]  code1  [ [else] ]  code2  [ [then] ]  ;
> 
> Why? Maybe to make sure the code would work in other Forth systems where
> those words are not immediate?

IIRC, the cross compiler had (or still has?) only non-immediate versions of 
these words, and therefore needs this kind of code.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://bernd-paysan.de/

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]