Saw that on my travels trying to figure out what the pred() was... I think i might start using them too =)
----- Original Message ----- From: "James Sugrue" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Friday, November 01, 2002 11:28 AM Subject: Re: [DUG]: Friday Challange > There is a lesser used function called Succ too. > > I.E > > for i := 1 to Succ( Count ) do > > which is the same as > > for i:= 1 to count + 1 do > ----- Original Message ----- > From: Kurt at iadvance <[EMAIL PROTECTED]> > To: Multiple recipients of list delphi <[EMAIL PROTECTED]> > Sent: Friday, November 01, 2002 11:32 AM > Subject: Re: [DUG]: Friday Challange > > > > Neven MacEwan wrote: > > > Tracey > > > > > > Stylistic really I also finding typing pred(Count) is less error > > > prone the - 1 sometimes gets lost > > > > > > N > > > > Nice, I'm _gonna_ do this, given that about 2 weeks ago I caused a > > *nasty* bug by accidentally checking in a function which deleted '+ 1' > > from the creation of a unique id. > > > > Because the new and old versions were accessing the same ids, > > the old versions were giving out (current n) + 1, then incrementing n, > > and the new version would then give out (current n) > > which was equal to previous n + 1. > > > > Yay, love side effects. > > > > Unique ids? We doan need no steenkeen unique ids. > > > > Cheers, Kurt. > > > > -------------------------------------------------------------------------- > - > > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > > Website: http://www.delphi.org.nz > > To UnSub, send email to: [EMAIL PROTECTED] > > with body of "unsubscribe delphi" > > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > > -------------------------------------------------------------------------- - > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/