In the document AngelScript: Operator overloads (angelcode.com), the example shows that the index operator similar to properties doesn't need a property
keyword in its declaration. But if I don't add a property
keyword and write script like my_obj[0] = 123;
, it fails to build, saying that type doesn't support index operator. The document seems misleading.
About declaration of `get_opIndex` and `set_opIndex` in the document
None
Hi HenryAWE. Yes, the documentation is incorrect. I'll have it corrected.
Thanks for pointing this out to me.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Fixed in revision 2947
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
Popular Topics
Advertisement