POV-Ray : Newsgroups : povray.advanced-users : Array irritation. : Re: Array irritation. Server Time
29 Jul 2024 22:19:54 EDT (-0400)
  Re: Array irritation.  
From: Lutz Kretzschmar
Date: 18 Oct 2000 10:27:59
Message: <jqcrus8b4ff8c7fg4st3a97f6lqpnsaagr@4ax.com>
Hi Warp, you recently wrote in povray.advanced-users:

>   I have seen this written in C:
> 
> double x = (double)(1.0);
> 
>   I'm just wondering why this wasn't enough:
> 
> double x = 1;

Maybe the programmer previous written that line as

DBL x = (DBL) 1.0;

and had DBL defined as float, but didn't want to add the 'f' onto the
1.0.

Then he did a global search and replace and replaced DBL with double?

- Lutz
  email : lut### [at] stmuccom
  Web   : http://www.stmuc.com/moray


Post a reply to this message

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