Where element can be whatever type you want to store. It is not so elegant as native support for arrays, but it is a solution that works.

The reason I haven''t just added the index operator [] for pointers is that I want AngelScript to be secure, using the index operator directly would allow out-of-bounds accessing in scripts and could easily compromise security for both application and operative system.

__________________________________________________________www.AngelCode.com - game development and more...AngelScript - free scripting library

That is already on the list of todos. There is not much missing to add this feature. AngelScript already supports overloading for the dual operators. And adding support for the unary operators is a similar process.

Unfortunately I''m currently very short on time right now. What I was thinking was going to take a couple of days to finish is taking weeks, just because I only get a couple of hours in the weekend to work on AngelScript. This shortage on time will probably last at most until the middle of May if things go as planned.

__________________________________________________________www.AngelCode.com - game development and more...AngelScript - free scripting library