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. Warren On Fri, Apr 24, 2026 at 1:53 AM Marco van de Voort via fpc-pascal < [email protected]> wrote: > > Op 24-4-2026 om 10:12 schreef Martin Frb via fpc-pascal: > > CC'ed to [email protected] => for follow ups > > > > On 23/04/2026 15:23, Graeme Geldenhuys via fpc-pascal wrote: > >> On Thursday, 23 April 2026 10:53:02 BST michael via fpc-pascal wrote: > >>> Other than that I have no knowledge of missing delphi things except > >>> inline variables. > >> I just just reading a article from a few years ago, explaining the pros > and > >> cons of inline variables. It actually made a really good case for that. > There > >> is a open MR for inline variables already - just not review/merged. > >> > >> > https://blogs.embarcadero.com/introducing-inline-variables-in-the-delphi-language/ > > Apart from the general yes/no question.... > > (and I haven't looked deep into language design..., still...) > > > (also, many people want to read in that stack layout follows the nesting > of inline variables. I however think that there is no direct relation > between declaring and where the stackframe is created. (probably once at > the beginning only) But I don't have a new enough Delphi, and the thread > died before anybody answered) > _______________________________________________ > fpc-pascal maillist - [email protected] > https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal >
_______________________________________________ fpc-pascal maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
