gazelle
7/1/2011 6:25:00 PM
In article <iukq38$sul$1@dont-email.me>,
Shao Miller <sha0.miller@gmail.com> wrote:
>On 7/1/2011 3:19 AM, io_x wrote:
>> "Shao Miller"<sha0.miller@gmail.com> ha scritto nel messaggio
>> news:iui19t$lkn$1@dont-email.me...
>>> /****
>>> * flowto.c
>>> * 2011, Shao Miller
>>> * Just for fun. :)
>>> */
>>> #if 0 /* Definition */
>>>
>>> "flowto": A function-like macro resembling
>>> a jump-statement.
>>>
>>> Syntax
>>>
>>> 1 flowto ( identifier ) statement
>>
>> i'm not too much smart.. nor to know english very well
>> but why that would be the advantage of above to:
>> 1 statement; goto indetifier;
>>
>>> ...
>
>It's one statement instead of two.
>
> if (foo)
> bar();
> else
> baz();
>
> if (foo)
> { bar(); goto somewhere; }
> else
> baz();
>
> if (foo)
> flowto(somewhere) bar();
> else
> baz();
Of course, it is just a matter of time until one of the residents pedants
gets all hyper about how you are just being cute trying to avoid a set of
braces - and how they, in their innnate superiority, always use braces
regardless of how many statements are involved (i.e., in the case where that
number is 1).
--
Is God willing to prevent evil, but not able? Then he is not omnipotent.
Is he able, but not willing? Then he is malevolent.
Is he both able and willing? Then whence cometh evil?
Is he neither able nor willing? Then why call him God?
~ Epicurus