Hallo Ivanko,

Du schriebst am Tue, 19 Nov 2013 13:30:22 +0500:

> Also "ELSE IF" may spawn a lot of needless END whereas ELIF doesn't need

That's wrong impression. Assuming any such construct requires a complete
block constituted by a "begin"-"end" pair, they have exactly the same block
structure:

  IF <cond1> THEN BEGIN
    ...
  END
  ELSE IF <cond2> THEN BEGIN
    ...
  END
  ELSE IF <cond3> THEN BEGIN
    ...
  END
  ELSE IF <cond4> THEN BEGIN
    ...
  END
  ELSE BEGIN
    ...
  END;

vs.

  IF <cond1> THEN BEGIN
    ...
  END
  ELIF <cond2> THEN BEGIN
    ...
  END
  ELIF <cond3> THEN BEGIN
    ...
  END
  ELIF <cond4> THEN BEGIN
    ...
  END
  ELSE BEGIN
    ...
  END;

The difference ist just three chracters per "EL[SE ]IF", nothing more and
nothing less (as they say).

-- 
-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
-----------------------------------------------------------
Mit freundlichen Grüßen, S. Schicktanz
-----------------------------------------------------------



------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to