Skip to main content
GameDev.net gamedev.net
🔒 Locked

compiler error when using namespace with the array addon

Started by sylexer Jun 13, 2012 at 8:13 PM 1 replies 1.4k views
Original Post
sylexer
sylexer
i have the following declaration in my class


array 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 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.
WitchLord
WitchLord
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 - <a href="http://www.angelcode.com/tower" rel
WitchLord
WitchLord
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 - <a href="http://www.angelcode.com/tower" rel

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.