[fpc-devel] Is that supposed to work: property with "[var index: TFoo]" ?
Sven Barth
pascaldragon at googlemail.com
Thu Jun 27 23:57:04 CEST 2019
Ryan Joseph <genericptr at gmail.com> schrieb am Do., 27. Juni 2019, 23:50:
>
>
> > On Jun 27, 2019, at 3:09 PM, Martin <fpc at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190627/e31e0eb6/attachment.html>
More information about the fpc-devel
mailing list