|
![](/i/fill.gif) |
>>> Except that C does have goto.
>
>> Ooo, really?
>
>> In that case, I have *no clue* why they did it this way...
>
> Because "while(1)" is a common idiom, and avoids the ugly goto.
>
>> Oh, wait, maybe I do... Can you use GOTO to jump to a *pointer*? Or only
>> a literal label?
>
> Jumping to a pointer is normally called "function call".
>
> Goto works only with labels.
Yes, but jumping to a function pushes a return address onto the stack.
And they specifically don't want to do that. (Because it would use an
unbounded amount of stack.)
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
![](/i/fill.gif) |