POV-Ray : Newsgroups : povray.general : Bug in superellipsoid : Re: Bug in superellipsoid Server Time
9 Aug 2024 15:16:52 EDT (-0400)
  Re: Bug in superellipsoid  
From: Peter J  Holzer
Date: 22 Aug 2000 16:01:05
Message: <slrn8q5l17.al5.hjp-usenet@teal.h.hjp.at>
On 20 Aug 2000 23:47:55 -0400, Ron Parker wrote:
>On Sun, 13 Aug 2000 12:26:02 +0200, Peter J. Holzer wrote:
>>Possibly. But tmin and tmax are always just the distance of the
>>currently considered planes from P, so I guess it makes sense to reuse
>>the variables (or at least the variable name - personally I would have
>>declared those variables only in the blocks where they are used).
>
>And it wouldn't have compiled on every possible machine.  This is C, not
>C++.

In C you can declare variables at the start of every block. I don't know if
this has always been the case, but I am reasonably sure it was already
in K&R I 1978 (it's in the German translation of that book, which was
published 5 years later).

	hp

-- 
   _  | Peter J. Holzer    | Nicht an Tueren mangelt es,
|_|_) | Sysadmin WSR       | sondern an der Einrichtung (aka Content).
| |   | hjp### [at] wsracat      |    -- Ale### [at] univieacat
__/   | http://www.hjp.at/ |       zum Thema Portale in at.linux


Post a reply to this message

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