[DUG] for..loop

Ross Levis ross at stationplaylist.com
Tue Aug 7 17:07:09 NZST 2007


Ok, I get it.  This may explain an unusual problem I have which is why I
asked.  I'll have to code another variable in there somewhere.

Thanks,
Ross.

-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Sean Cross
Sent: Tuesday, 7 August 2007 15:39
To: NZ Borland Developers Group - Delphi List
Subject: RE: [DUG] for..loop

Never rely on this.  With optimisations on, for loops often start at the
high number and work down.  The variable can also be stuck in a register,
which can be trashed on leaving the loop.

In short, it is undefined.

Regards



More information about the Delphi mailing list