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.
compiler error when using namespace with the array addon
Started by sylexer, Jun 13 2012 02:13 PM
2 replies to this topic
Sponsor:
#2 Moderators - Reputation: 2311
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.
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
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
#3 Moderators - Reputation: 2311
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
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
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game






