Jump to content

  • Log In with Google      Sign In   
  • Create Account

- - - - -

compiler error when using namespace with the array addon


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 sylexer   Members   -  Reputation: 112

Like
0Likes
Like

Posted 13 June 2012 - 02:13 PM

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.

Sponsor:

#2 Andreas Jonsson   Moderators   -  Reputation: 3444

Like
0Likes
Like

Posted 13 June 2012 - 03:29 PM

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.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

#3 Andreas Jonsson   Moderators   -  Reputation: 3444

Like
0Likes
Like

Posted 26 June 2012 - 05:29 PM

I'm sorry for taking so long about this, but I've fixed now this bug in revision 1356.

Thanks,
Andreas
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS