• Advertisement
Sign in to follow this  

compiler error when using namespace with the array addon

This topic is 2032 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Yes, I believe you're right in your analysis. The parser is likely not properly handling the scope operator in the template subtype.

I'll look into this and have it fixed as soon as possible.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement