6.26.2 Standard Forth locals

The Forth-2012 standard defines a syntax for locals that is a 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 the standardization committee standardized another, better syntax (the one using {:). We have implemented this syntax only to make porting to Gforth easy. 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.