Ryan Joseph <generic...@gmail.com> schrieb am Sa., 26. Okt. 2019, 22:46:

>
>
> > On Oct 26, 2019, at 12:55 PM, Sven Barth via fpc-pascal <
> fpc-pascal@lists.freepascal.org> wrote:
> >
> > tmpenum := y.GetEnumerator;
> > while tmpenum.MoveNext do begin
> >   x := tmpenum.Current;
> >   // ...
> > end;
>
> Ok, I understand how you guys are seeing this now. I wasn’t thinking of it
> as a while loop so casting just made sense to me from an efficiency
> standpoint.
>

As said in the other thread, use absolute to avoid the explicit cast.

Regards,
Sven

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

Reply via email to