Posted 26 October 2004 - 01:23 PM
A pointer to a pointer would need yet another type. But I can't think of any place where you actually need to store a pointer to a pointer. It is mostly used in parameters, where a reference to a pointer type would work just as well.
I don't think I will support the alternate casting style, (type)expression. But then again, nothing is set in stone. It would be necessary for casting between pointer types, if I decide to keep the pointers.
Once AngelScript supports polymorphism, the references will be work just as well for this purpose.
Exactly, by no pointers in AngelScript I mean that the scripting language won't have the * type modifier. The C++ application will still be able to pass a pointer to the script, which would then have to store it in another type. This replacement type can be a registered type where the application freely chooses the name.
In my opinion, since the scripting language don't allow for taking the address of a variable, dereferencing a pointer, or any pointer arithmetic, the pointers don't really bring any advantage to the language.
I thank you all for your support, and your help in deciding the future of AngelScript.
I've not yet made a final decision, so keep writing your comments.