The Forth-2012 standard defines a syntax for locals is restricted version of Gforth’s locals:
The Standard Forth locals wordset itself consists of two words:
{:
and:
(local)
( addr u – ) local “paren-local-paren”
The Forth-2012 locals extension wordset also defines a syntax using
locals|
, but it is so awful that we strongly recommend not to
use it and another, better syntax (the one using {:
was
standardized). We have implemented this syntax to make porting to
Gforth easy, but do not document it here. The problem with this syntax
is that the locals are defined in an order reversed with respect to
the standard stack comment notation, making programs harder to read,
and easier to misread and miswrite.