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

Alexander Klenin klenin at gmail.com
Fri Jun 8 09:37:30 CEST 2012

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.

Alexander S. Klenin

More information about the fpc-devel mailing list