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
|