[fpc-pascal] bug or feature?

Michael Van Canneyt michael at freepascal.org
Sun Feb 13 11:46:24 CET 2022



On Sun, 13 Feb 2022, Sven Barth via fpc-pascal wrote:

>>>> Personally, I would not allow this.
>>>> But Delphi compiles and runs it...
>>>
>>> ... and Delphi's class completion no longer works in the unit giving a
>>> useless error "expected ';' but '.' found". So it is one of those
>>> Delphi "features" compiling but not usable.
>>
>> I'm all for forbidding this in objfpc mode.
>>
>
> Then file a bug report for it. Cause it's definitely going to be one of the
> low priority things cause it's going to be annoying to fix...

Done:

https://gitlab.com/freepascal.org/fpc/source/-/issues/39576

Maybe someone can check whether Florian's solution really is 'famous last words' ;-)

Michael.


More information about the fpc-pascal mailing list