POV-Ray : Newsgroups : povray.off-topic : Random C craziness : Re: Random C craziness Server Time
7 Sep 2024 11:20:56 EDT (-0400)
  Re: Random C craziness  
From: Warp
Date: 25 Jul 2008 08:59:08
Message: <4889ce1c@news.povray.org>
Chris Cason <del### [at] deletethistoopovrayorg> wrote:
> Of course, this being C, 'TRUE' could be a macro that expands to a function
>  that returns a value and thus the loop need not be infinite.

  Actually there are other ways for the loop to end. For instance, the
function being called could execute an exit() call.

  (Another less fancy way would be to return a null pointer from the
function, in which case the program will end with a segmentation fault.)

-- 
                                                          - Warp


Post a reply to this message

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