POV-Ray : Newsgroups : povray.off-topic : Random C craziness : Re: Random C craziness Server Time
7 Sep 2024 05:09:57 EDT (-0400)
  Re: Random C craziness  
From: Invisible
Date: 25 Jul 2008 04:53:42
Message: <48899496$1@news.povray.org>
>> So cont points to a zero-argument function that returns a zero-argument 
>> function? And this loop just calls it repeatedly?
> 
> Assuming TRUE is a value that always returns non-zero, yes. The code itself
> appears to implement a state machine.

More exactly: It's a workaround for C's lack of lack of GOTO.

[This fragment appears in the output of a compiler that's using C as 
"portable assembly".]

> In the real world, no programmer would ever do something
> that mean with a macro called TRUE. Right? :-)

Hey, I found this cool site, it's called The Daily WTF... ;-)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

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