POV-Ray : Newsgroups : povray.programming : mixing POV code with C++ : Re: POV source errors Server Time
29 Jul 2024 06:16:25 EDT (-0400)
  Re: POV source errors  
From: Nigel Stewart
Date: 15 Feb 1999 04:32:16
Message: <36c7e9a0.0@news.povray.org>
>If you suggest doing DBL x = (DBL) 2.0 why not doing the same for
>short x = (short)5, or long y = (long)7 because the native type of 5 and 7
>would is assumed to be int by some compiler...


Ahhh...  Here is our misunderstanding.  You interpret me as saying
that you should never rely on implicit casting.  My meaning is that
you need to be careful about implicit casting of floats and doubles.


Post a reply to this message

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