[fpc-devel] Scalar value is accepted as an argument for an open array parameter

Sven Barth pascaldragon at googlemail.com
Fri Jun 8 10:22:54 CEST 2012


Am 08.06.2012 09:37, schrieb Alexander Klenin:
> On Fri, Jun 8, 2012 at 6:08 PM, Marc Weustink<marc at dommelstein.net>  wrote:
>> Unfortunately Delphi (6) accepts this too. It took me some time at work to
>> figure out why some code suddenly behaved weird. (I changed a integer
>> argument to array of integer and assumed the compiler would help me to find
>> the places where I still passed a single integer)
>
> I suggest this "feature" to be disabled in objfpc mode then.
>

This would not be backwards compatible, thus the answer to this request 
is most likely: No.

Regards,
Sven



More information about the fpc-devel mailing list