[fpc-pascal] Delphi mode syntax error

Michael Van Canneyt michael at freepascal.org
Tue Jan 19 12:57:09 CET 2010



On Tue, 19 Jan 2010, Roland Turcan wrote:

> <<< 19.01.2010 11:39 - Jonas Maebe "jonas.maebe at elis.ugent.be" >>>
>
> JM> On 19 Jan 2010, at 11:27, Jonas Maebe wrote:
>
>>> On 19 Jan 2010, at 11:14, Roland Turcan wrote:
>>>
>>>> ShowMessage (IntToStr (MyItems[0]));
>>>
>>> I think this should work:
>>>  ShowMessage (IntToStr (MyItems[0]()));
>>>
>>> Please also file a bug report with a compilable example (which does
>>> not depend on Lazarus) that demonstrates the problem
>
> JM> Well, at least if the original code compiles with Delphi/Kylix.
>
> Thank Jonas for you reply, but FreePascal and Kylix as well reports
> the same error.

It should not compile in Delphi mode.
Array syntax is not supported by Delphi.

So there is no bug.

Michael.



More information about the fpc-pascal mailing list