Ryan Joseph <generic...@gmail.com> schrieb am Do., 27. Juni 2019, 23:50:

>
>
> > On Jun 27, 2019, at 3:09 PM, Martin <f...@mfriebe.de> wrote:
> >
> > The below compiles, and writes
> > 1 2
> >
> > Are indexes to properties intentionally allowed to take "var param"?
> > Btw it even compiles with an "out" param.
>
> That sounds like a bug or something that should be prevented. I just found
> out default properties allowed overloading by accidental means so this may
> be another similar matter. Those should maybe be prevented also but that
> could break existing code.
>

If it's a bug (what I do indeed think of this and the other bug you
mentioned) it's considered acceptable to break backwards compatibility.
After all we wouldn't be able to fix essentially anything as some code out
there might rely on the behavior.

Regards,
Sven

>
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to