POV-Ray : Newsgroups : povray.advanced-users : Array irritation. : Re: Array irritation. Server Time
29 Jul 2024 22:32:03 EDT (-0400)
  Re: Array irritation.  
From: Pabs
Date: 18 Oct 2000 05:43:21
Message: <39ED7102.9C9BD2E4@hotmail.com>
Warp wrote:

>   I have seen this written in C:
> double x = (double)(1.0);

<chuckle> Who wrote that </chuckle> :)))
As far as I know most compilers convert constants at compile time.

>   I'm just wondering why this wasn't enough:
> double x = 1;

Maybe they thought that the compiler would insert instructions to convert an
int to a double at runtime, unlikely though it is?


--
Bye
Pabs


Post a reply to this message

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