Original Post
Hi there, and thanks for reading. I'm working on a little 3D engine of my own right now and I am looking for a scripting library for it. Well my first choice would be angelscript right now. At work we use LUA, but I think the syntax is hideous, and I like the features Angelscript offers in working with objects etc. and it being statically typed. I have one problem though, that I know how to address in lua, but not with angelscript: I manage my objects and resources with my own implementation of ref-counted smartpointers. ofcourse, I would like to use these smartpointers in scripts for obvious reasons. If I was to go for LUA, I would look into SWIG. Swig should be able to generate extra functions in the gluecode for lua, so that I don't need to change my C++ code, and the scripter doesn't notice the difference between a smartpointer and the actual object. (Read how it's done at http://www.swig.org/Doc1.3/SWIGPlus.html#SWIGPlus_nn34 ) I know Angelscript won't let me bind the -> operator (is this even possible? Other languages seem to have the same restriction) but are there perhaps other ways so that I could make some bindings for my pointers in angelscript and roughly keep the same functionality? Or could I perhaps change angelscript so that they do work? Thanks in advance, Wracky