[fpc-pascal] Info about the -Mdelphi mode

Tomas Hajny xhajt03 at hajny.biz
Sat Apr 25 19:38:09 CEST 2026


26. dubna 2026 1:46:17 SELČ, Warren Postma via fpc-pascal <fpc-pascal at lists.freepascal.org> napsal:
> Every modern language has inline variabler declarations because it was
> always a thing in the one most of us care about.
> 
> Not having inline variables means that our strongly typed language Pascal
> doesn't have as precise a scoping of variables as possible, preventing read
> access before initialization, which is a major smell in the pascal language
> and compiler designs.

I sincerely hope, that _if_ it ever gets supported, the implementation is strictly restricted to $MODE DELPHI and its documentation is accompanied with a bold warning like "Although this option became supported in FPC due to improved Delphi compatibility, it should be strongly discouraged because it is not compliant to Pascal."

Tomas



More information about the fpc-pascal mailing list