Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#ActualAndreas Jonsson

Posted 26 June 2012 - 05:29 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.

#2Andreas Jonsson

Posted 13 June 2012 - 03:29 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.

#1sylexer

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.

PARTNERS