Re: Question about Delphi versus other languages
From: Bruce Roberts (ber_at_bounceitattcanada.xnet)
Date: 10/15/04
- Next message: Sven Pran: "Re: Question about Delphi versus other languages"
- Previous message: Bruce Roberts: "Re: Question about Delphi versus other languages"
- In reply to: Martin Harvey (Demon account): "Re: Question about Delphi versus other languages"
- Next in thread: Martin Harvey (Demon account): "Re: Question about Delphi versus other languages"
- Reply: Martin Harvey (Demon account): "Re: Question about Delphi versus other languages"
- Reply: Martin Harvey (Demon account): "Re: Question about Delphi versus other languages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 15 Oct 2004 14:13:37 -0400
"Martin Harvey (Demon account)" <martin@nospam_pergolesi.demon.co.uk> wrote
in message news:f7ttm055ptmbtccf6iuqbkiach83fmp3vc@4ax.com...
> Oh reallllly???? I've used this on a few occasions - a quick file grep
> shows:
>
> //Now acquire realtime references, and get node to relinquish
> //references from older commands.
> FRealtimeRefs := Action.RealRefs;
> for RRefType := Low(boolean) to High(boolean) do
> if Assigned(FRealtimeRefs[RRefType]) then
> (FRealtimeRefs[RRefType] as
> TFSrcNode).SetRealReferencedCmd(self,
> RRefType);
>
> I can see the chastisement heading my way....
If you can see it, do I really have to be explicit? ISTM that unrolling such
a loop makes eminent sense from a performance perspective let alone a
stylistic one. If one really wants an ordered enumeration of two values, why
not declare it as such? Will it not make the program more readable. After
all, one uses enumerations when integer values work equally well for the
same reason.
- Next message: Sven Pran: "Re: Question about Delphi versus other languages"
- Previous message: Bruce Roberts: "Re: Question about Delphi versus other languages"
- In reply to: Martin Harvey (Demon account): "Re: Question about Delphi versus other languages"
- Next in thread: Martin Harvey (Demon account): "Re: Question about Delphi versus other languages"
- Reply: Martin Harvey (Demon account): "Re: Question about Delphi versus other languages"
- Reply: Martin Harvey (Demon account): "Re: Question about Delphi versus other languages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]