Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why Pascal Is Not My Favorite Programming Language (1981). Parent comment
You can use a const in a function and wrap it in {$J+} to allow modifying consts. And that's a static variable on that function (or procedure), e.g.
{$J+}
procedure A; const C: integer = 0; begin Inc(C); Writeln(C); end;
{$J-}
There are no comments on this comment yet.
You can use a const in a function and wrap it in {$J+} to allow modifying consts. And that's a static variable on that function (or procedure), e.g.
{$J+}
procedure A; const C: integer = 0; begin Inc(C); Writeln(C); end;
{$J-}