POV-Ray : Newsgroups : povray.advanced-users : Instantiation and terminiation....OOP & Povray? : Re: Instantiation and terminiation....OOP & Povray? Server Time
28 Jul 2024 10:20:56 EDT (-0400)
  Re: Instantiation and terminiation....OOP & Povray?  
From: Darren New
Date: 25 Jan 2006 15:22:44
Message: <43d7de14$1@news.povray.org>
Warp wrote:
>   What if the operator is something else? How fast can you decipher it
> with this simple change:
> 
> #if ((0.25 < clock) | (clock < 0.75))

You know it's wrong. :) & goes there if the variable's in the middle, | 
goes there if it's on the outside.

Just like if you saw

for (i = 0; i <= count; i++)
you'd know it's probably wrong and you need to look close to make sure.

>   I usually read from left to right. I'm not a Chinese.

When the expression gets complex, it's harder, yes. With simple stuff, 
you can see both sides of the equation at once.  As I say, like counting 
starting from zero, it takes seeing it a few times for it to be comfortable.

Of course, Cobol got this bit right, I fear. :-) There's a couple other 
languages that let you write
   if (x < y < z)
but I don't remember just what they are.

(Chinese goes top to bottom, btw. :-)

-- 
   Darren New / San Diego, CA, USA (PST)
    Luke, the Force is a powerful ally,
    second only to The QuickSave.


Post a reply to this message

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