slang-users mailing list

[2008 Date Index] [2008 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] Re: goto statement in slang


Hallo John,

"John E. Davis" <davis@xxxxxxxxxxxxx> wrote:
> Tolga Guver <guver.tolga@xxxxxxxxx> wrote:
>> I was wondering if there is anything like a goto statement in IDL.
>
> No.  There are other control mechanisms such as EXIT_BLOCK that may
> be used but none are equivalent to the goto statement.

As we all know goto is evil, I expect you never will implement it. But
what about break and continue with an optional level as in shell.

forever
{
    while (1)
    {
        break 2;
    }
}

Bye, Jörg.
-- 
Die meisten Menschen wollen lieber durch Lob ruiniert
als durch Kritik gerettet werden.



[2008 date index] [2008 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]