Jump to content
Mr. Bram1 Kerkhofs1

Syntax error in new version 4.1.1

Recommended Posts

Hi

 

Edit: It is version 4.4.1, appologies

I'm having a problem with the new version of Caeses.
so this code doesn't compile:
 

imagecurve interpolCirccurve()

 

interpolCirccurve{

.Setcurve(Curve)

.setDomain([0.5,1])

.setName("halfCurve")

.SetVisible(0)

}

 

it reports:
"

Error: Line 112 [1,19]: Scopes not allowed inside functions

 

"

So the reason why I program like this is: when you have an if-statement, and you want to declare the "curve", but "if blablabla, take curve. Else take curve1" or something alike. When I declare the image curve twice, I get a warning that stuff is declared mutliple times. So this is a way to ommit the warning.

 

Any suggestions how to do this in the new version?

 

Cheers!

Bram
 

Share this post


Link to post
Share on other sites

Hi Bram,

 

Is this code snipet inside a function? We have disabled the scopewise notation inside functions due to technical reasons so you could simply write:

 

imagecurve interpolCirccurve()

 

interpolCirccurve.Setcurve(Curve)

interpolCirccurve.setDomain([0.5,1])

interpolCirccurve.setName("halfCurve")

interpolCirccurve.SetVisible(0)

 

Does this help?

 

Cheers
Stefan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...