Advertisement

compiler error when using namespace with the array addon

Started by June 13, 2012 08:13 PM
1 comment, last by WitchLord 12 years, 5 months ago
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.
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

Advertisement
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

This topic is closed to new replies.

Advertisement