Re: Current coding standard documentation



Chris Burrows wrote:

How would you write this in Delphi so that it is less confusing?
Which 'if' does the second 'else' belong to?

if x = 1 then begin
//
end else if y = 5 then
begin
//
end
else begin
//
end;

Why is there any confusion here? The formatting could be a bit mroe
consistent:

if x = 1 then
begin
//
end
else if y = 5 then
begin
//
end
else
begin
//
end;

But I don't see how one would not know the last Else goes with the
immediately prior If.

--
Wayne Niddery - Winwright, Inc (www.winwright.ca)
"Reality is that which, when you stop believing in it, doesn't go
away." ? Philip K. Dick


.



Relevant Pages

  • Re: Delphi and MacOS X ?
    ... And this has to do with Delphi what?? ... stop confusing people with comments like this. ... The point is that obviusly the poster does not speak or understants ... Now under this light I must admit that my post whas not clear enough to ...
    (borland.public.delphi.non-technical)
  • Updates incredibly confusing (RANT ALERT)
    ... but I'm finding it incredibly confusing and heavy ... going to install and update my Delphi 2007 for Win 32. ... CodeGear being unhelpful, would you? ...
    (borland.public.delphi.non-technical)
  • Re: No BDS anymore?
    ... Win32 only version of BDS. ... but people with an affinity for Delphi Pro are ... now *this* is confusing the heck out of me. ...
    (borland.public.delphi.non-technical)
  • Re: What is the status of Delphi?
    ... For instance, last year I bought 'Borland Delphi 2006', and it says that on ... release in a new Codegear RAD Studio range (this hasn't actually been ... but the text 'RAD Studio' crops up at various places ... It would also get rid of that confusing 'Delphi for PHP' name, ...
    (borland.public.delphi.non-technical)
  • Re: Current coding standard documentation
    ... When I'd give a Delphi class, I'd say that Delphi has /two/ if ... How would you write this in Delphi so that it is less confusing? ... casual / part-time programmers, otherwise they would quickly get out of ... it is similar to "give a man a fish and you'll feed him for a day - ...
    (borland.public.delphi.non-technical)