Sujet : Juggling system-compilation items
De : ruvim.pinka (at) *nospam* gmail.com (Ruvim)
Groupes : comp.lang.forthDate : 09. Aug 2024, 15:05:47
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v957nr$jq4q$2@dont-email.me>
User-Agent : Mozilla Thunderbird
Do you know a Forth system in which the following definition for "const" is compiled but does not work as expected?
: const ( x "<spaces>name" -- )
depth >r ( x ) ( R: n.depth )
: ( x colon-sys ) ( R: n.depth )
depth r> - ( x colon-sys n.size ) ( R: )
n>r ( x ) ( R: i*x n.size )
postpone literal ( ) ( R: i*x n.size )
nr> ( colon-sys n.size ) ( R: )
drop ( colon-sys )
postpone ; ( )
;
t{ 123 const foo -> }t
t{ foo -> 3 }t
Note 3.1.5.1 System-compilation types <
https://forth-standard.org/standard/usage#subsubsection.3.1.5.1>
-- Ruvim