I would like to stay away from global functions. If I have n object types to create, I would have to have n x global creates to do. And in our case, n might be big (in fact, we cannot know in advance since we parse and generate code from the production's project)

What I was searching for was a way to create a global function, which is a templated function, but mask it under an object type in AngelScript, for exemple :

The script language currently doesn't have support for static class methods. It's on my to-do list, but currently have no estimate as to when I'll be able to implement it.

In the meantime global functions is the way to do it. If you have lot's of similar static methods you can possibly use namespaces to emulate the static method. But I'd recommend going with a simple prefix or suffix in the function name. For example: