POV-Ray : Newsgroups : povray.general : #declare blah =3D -1; // bug avoidance (avoids "incomplete function or s= Server Time
1 Aug 2024 02:17:08 EDT (-0400)
  #declare blah =3D -1; // bug avoidance (avoids "incomplete function or s= (Message 11 to 14 of 14)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Charles C
Subject: Re: #declare blah =3D3D3D3D -1; // bug avoidance (avoids "incomplete fun=
Date: 7 Aug 2006 13:45:01
Message: <web.44d77bfa10f9b831b160ffde0@news.povray.org>
Thanks guys,
Unfortunately I don't think I'm out of the woods yet on this one.

I had actually run into problems sometime back when modifying variables
named by the parameter line of a macro.  So, ever since then I've made a
point of declaring a local variable to take it's place if need be.  E.g.

#macro DoSomething(Variable)
   #local TempVariable = Variable;
   #declare TempVariable = Variable + 1;
#end


So I suppose it could still somehow be related to the parameter bug, but I
suspect this is something else. Also, last night I found a case where the
"offending" line wasn't even a function or spline call... It was just a
#declare statement, in this case, still having to do with splines.  It was
something like:

#declare MySpline2 = MySpline1;

....And That's about it.   I tried adding a line above it:

#ifndef(MySpline1) #error "uh oh"  #end

....but unfortunately this line made it parse.  As I said, any little change
elsewhere up above in the code can change whether a likely offender
actually offends.

So far I've found 3 types of offenders:

1.  A call to a macro which creates triangles between 2 splines which are
passed as parameters.
2.  A call to a macro which generates a spline using points from other
splines.  A single float is passed to this macro to tell it what point
along those other splines to use.
3. #declare MySpline2 = MySpline1; //or something like this.

(None of these involve modifying parameters.)

Thanks again,
Charles



Thanks again,
Charles


Post a reply to this message

From: Charles C
Subject: Re: #declare blah =3D3D3D3D3D -1; // bug avoidance (avoids "incomplete f=
Date: 7 Aug 2006 14:35:01
Message: <web.44d786d2215c4c0cb160ffde0@news.povray.org>
"Charles C" <nomail@nomail> wrote:
>
> #macro DoSomething(Variable)
>    #local TempVariable = Variable;
>    #declare TempVariable = Variable + 1;
> #end

It should've been a #declare in this case.  Normally there's a lot more in
the macro and I'll only #declare what I want to keep.


Post a reply to this message

From: Dave Matthews
Subject: Re: #declare blah =3D3D3D3D3D -1; // bug avoidance (avoids "incomplete f=
Date: 8 Aug 2006 12:55:01
Message: <web.44d8c118215c4c0c8c7259570@news.povray.org>
I've encountered the same problem in the same situation, and my solution was
to go back to version 3.5, which doesn't have this bug (which is fine, as
long as you're not using any 3.6 features.)

Dave Matthews


Post a reply to this message

From: Charles C
Subject: Re: #declare blah =3D3D3D3D3D3D -1; // bug avoidance (avoids "incomplete= f=3D
Date: 9 Aug 2006 01:25:01
Message: <web.44d9708ecee9dbf73869c6770@news.povray.org>
That's validating - at least I'm not alone :)
Charles


"Dave Matthews" <dav### [at] mnwestedu> wrote:
> I've encountered the same problem in the same situation, and my solution was
> to go back to version 3.5, which doesn't have this bug (which is fine, as
> long as you're not using any 3.6 features.)
>
> Dave Matthews


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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