POV-Ray : Newsgroups : povray.off-topic : Today's WTF moment : Re: Today's WTF moment Server Time
28 Jul 2024 14:18:44 EDT (-0400)
  Re: Today's WTF moment  
From: Orchid Win7 v1
Date: 12 Jan 2014 05:12:14
Message: <52d26a7e$1@news.povray.org>
On 12/01/2014 12:25 AM, posfan12 wrote:
> On 1/11/2014 12:43 PM, Orchid Win7 v1 wrote:
>> what the hell the "-->" operator does
>
> What the hell does the "-->" operator do?

There is no spoon, and it is really you that bends.

Wait, what where we talking about? Oh yeah...

Apparently, the expression

   x --> 0

is actually parsed as

   (x--) > 0

Now of course, it should be obvious what it does. Indeed, if the author 
of the original code had written it that way, this question would never 
even have been asked!

There's a whole seam of similar questions on Stack Overflow - e.g., what 
does "&&&" do? It turns out that by mixing up binary and unary operators 
without spaces, you can CONFUSE THE **** OUT OF PEOPLE!


Post a reply to this message

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