|
![](/i/fill.gif) |
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] wsr ac at | -- Ale### [at] univie ac at
__/ | http://www.hjp.at/ | zum Thema Portale in at.linux
Post a reply to this message
|
![](/i/fill.gif) |