[fpc-pascal] Dynamic loading to static?

Sven Barth pascaldragon at googlemail.com
Sun Oct 27 02:15:18 CEST 2019


Ryan Joseph <genericptr at 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 at 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

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20191027/33935034/attachment-0001.html>


More information about the fpc-pascal mailing list