POV-Ray : Newsgroups : povray.beta-test : known bugs 28 Jan 2002 : Re: known bugs 28 Jan 2002 Server Time
30 Jul 2024 06:24:28 EDT (-0400)
  Re: known bugs 28 Jan 2002  
From: Ron Parker
Date: 5 Feb 2002 20:50:46
Message: <slrna612vq.3h2.ron.parker@fwi.com>
On Thu, 31 Jan 2002 20:20:10 +0100, Simon Adameit wrote:
> The following code produces this error:
> 
>  #local ohh=ahh <----ERROR
> Parse Error: Cannot assign uninitialized identifier.

And why is this a bug?

> Code:
> 
> #fopen wfile "nothing.txt" write
> #fclose wfile
> 
> #fopen rfile "nothing.txt" read
> #read(rfile,ahh)

This #read has to fail.  There's nothing for it to read.

> #ifdef(ahh)
>   #local ohh=ahh;
> #end

So it's defined but not initialized.  What's so wrong with that?
Aren't you supposed to check whether rfile is defined to detect
EOF rather than checking whether ahh is defined?

> #fclose rfile


-- 
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbf 1}hollow interior{media{emission 3-T}}}#end 
Z(-x-x.2x)camera{location z*-10rotate x*90normal{bumps.02scale.05}}


Post a reply to this message

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