Jump to content
  • Advertisement
Sign in to follow this  

compiler error when using namespace with the array addon

This topic is 2159 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:

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

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
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

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!