POV-Ray : Newsgroups : povray.off-topic : That's got to be one of the stupider design choices I've seen : That's got to be one of the stupider design choices I've seen Server Time
4 Sep 2024 11:22:06 EDT (-0400)
  That's got to be one of the stupider design choices I've seen  
From: Darren New
Date: 18 Feb 2010 23:54:09
Message: <4b7e1971$1@news.povray.org>
If you declare a function taking a float and an unsigned int parameter in 
C#, you can't just call it as
   xyz(0.3, 12)

You have to actually say
   xyz(0.3f, 12u)
because doubles don't silently cast to floats and ints don't silently cast 
to unsigned ints.  Even tho these are literals the compiler can see cast 
without losing precision.  Feh.

-- 
Darren New, San Diego CA, USA (PST)
   The question in today's corporate environment is not
   so much "what color is your parachute?" as it is
   "what color is your nose?"


Post a reply to this message

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