6.24.2 Standard Forth locals

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. 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. The only merit of this syntax is that it is easy to implement using the Forth-2012 locals wordset, but then, so is the {: syntax.