POV-Ray : Newsgroups : povray.advanced-users : Instantiation and terminiation....OOP & Povray? : Re: Instantiation and terminiation....OOP & Povray? Server Time
28 Jul 2024 10:16:25 EDT (-0400)
  Re: Instantiation and terminiation....OOP & Povray?  
From: Darren New
Date: 25 Jan 2006 11:25:00
Message: <43d7a65c@news.povray.org>
Mike Williams wrote:
> #if ((clock > 0.25) & (clock > 0.75)) 

This is why one should never use the > sign in comparisons. :-)

#if ((0.25 < clock) & (clock < 0.75))

Once you get into the habit, it rescues you from pretty much every 
single mistake of this form.

-- 
   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.