← board

flexcolumn calling-convention directive

Motivation

The value:w:d formatting micro-grammar is today special-cased in write/writeln/Str. Generalize it into a declarable calling-convention directive so formatted routines can be ordinary library functions whose call args carry optional :w:d modifiers. Pays off when variadic write/writeln move to library code (see feature-writeln-as-library).

Scope

Rationale: plan-pascal-syntax-issues.md §B1.

Acceptance

A library write-like routine declared with the directive accepts x:w:d call syntax and formats correctly; existing write/writeln/Str unchanged.

Spec (as implemented, 2026-07-03)

Log