Advertisement

About declaration of `get_opIndex` and `set_opIndex` in the document

Started by August 24, 2024 02:57 PM
2 comments, last by WitchLord 3 months ago

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.

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

Advertisement

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