Liste des Groupes | Revenir à cl forth |
Am 02.07.2025 um 10:53 schrieb Ruvim:This is not standard, just like `<: ;>`On 2025-06-24 01:03, minforth wrote:Are you sure? gforth test:
[...]
>For me, the small syntax extension is a convenience when working>
with longer definitions. A bit contrived (:= synonym for TO):
>
: SOME-APP { a f: b c | temp == n: flag z: freq }
\ inputs: integer a, floats b c
\ uninitialized: float temp
\ outputs: integer flag, complex freq
<: FUNC < ... calc function ... > ;>
BTW, why do you prefer the special syntax `<: ... ;>`
over an extension to the existing words `:` and `;`
>
: SOME-APP
[ : FUNC < ... calc function ... > ; ]
< ... >
;
>
In this approach the word `:` knows that it's a nested definition and behaves accordingly.
: APP 1 [ : func 2 ; ] func ; ok
app
*the terminal*:2:1: error: Invalid memory address
Les messages affichés proviennent d'usenet.