On Thu, Nov 21, 2013 at 1:27 PM, Martin Schreiber <[email protected]> wrote:
> On Thursday 21 November 2013 17:03:16 Marcos Douglas wrote:
>>
>> Please, don't do that... the sintaxe "end:= result;" is very ugly!
>>
> Alternatives?
> Using implicit 'result' variable or 'FUNCTIONNAME' variable is bad because of
> the unclear input/output state, a mandatory 'return' statement before 'end;'
> is ugly too.

Why needs a 'return' statement only before 'end'?
Using 'return' this will be valid?
sub sum(a: int, b: int): int;
begin
  if (a = 0) or (b = 0)
    return 0
  end;

  return a+b;
end;

Why 'return' statement before 'end;' is ugly too?

--
Marcos Douglas

------------------------------------------------------------------------------
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