POV-Ray : Newsgroups : povray.off-topic : Random C craziness : Re: Random C craziness Server Time
7 Sep 2024 11:21:09 EDT (-0400)
  Re: Random C craziness  
From: Warp
Date: 25 Jul 2008 09:05:47
Message: <4889cfab@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> >> More exactly: It's a workaround for C's lack of lack of GOTO.
> > 
> >   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.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.