Peter Fox wrote: > > The following code works on gforth 0.5.0: > > decimal > : my_type 10 spaces type ; > noname : 34 parse my_type ; lastxt > noname : 34 parse postpone SLiteral (compile) my_type ; lastxt > interpret/compile: my_." immediate
This code is obviously inspired by decompiler output (which you should not trust too far, as the output is not always faithful to the source; better look in the source directly (in this case, quotes.fs should provide a good inspiration). In this case, the main bug is the "(compile) my_type". You should use "POSTPONE my_type" instead. Also: - Declaring my_." as IMMEDIATE is unnecessary at best. - '[CHAR] "' is clearer than '34'. - ':noname' is standard and shorter than 'noname : ... lastxt' - The preferred name for LASTXT is LATESTXT now. We will try to improve the decompiler, however. - anton --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
