[fpc-pascal] Info about the -Mdelphi mode

Martin Frb lazarus at mfriebe.de
Sat Apr 25 20:12:52 CEST 2026


Copying your "tone" in my answer below...

On 26/04/2026 01:46, Warren Postma via fpc-pascal wrote:
> 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.

<sarcasm> Yes, </sarcasm> Just look at JS to see how well it works

     function a() { "use strict";  var x = b; var b; return b;} a();

The above compiles and runs just fine. Clearly "preventing read access 
before initialization".
<sarcasm> But, its very popular, so we should definitely copy that 
</sarcasm>

IIRC JS has now a linter, trying to get rid of the problems they 
created. But you want that we go introduce some part of that.... Really?


More information about the fpc-pascal mailing list