Sign in to follow this  

compiler error when using namespace with the array addon

Recommended Posts

i have the following declaration in my class

array<Mesh::TexturePlane@> pointMesh;

this gives me the following error:

[b]main.asc (14, 5) : ERR : Expected method or property[/b]
[b]main.asc (323, 1) : ERR : Unexpected token '}' [/b]

line 323 is the last line of my script.

When i remove the Namespace in the c++ "scriptEngine->SetDefaultNamespace("Mesh")"
array<TexturePlane@> pointMesh; << compiles ok

I also tested the simple array notation works with the namespace

Mesh::TexturePlane@[] pointMesh; << compiles ok

Seems like a bug in the array template addon notation.

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

Sign in to follow this