I'm finding it more and more annoying that on binding the same function twice to angelscript, it just dosen't give you a sensible warning. Angelscript doesn't warn you when you register then function the 2nd time, but rather tells you that there are "multiple matching signatures" to the function. I just spent a whole day looking for an alternate signature, after which I realized I was binding the function twice.
is there some sort of flag that we can send to AS_Engine that notifies us on registering a function twice? (Sure, there will be some overhead in checking this, maybe O(n) if we do a linear search, or O(1) if we decide to hash the string. That's why we could have a flag that lets us control this). Or is there some other way to figure out if a function (or a class) is being bound twice? (BTW, binding a class twice gives some weird errors. Angrlscript starts complaining about the destructor of the class that the behavior I'm trying to register is invalid. It also doesn't let you instantiate the class properly. I guess this maybe the accepted behavior? )
but it would be really nice to have some sort of a feature like this. Heck, I'd be happy to implement it if you told me where to modify the code.
PS- English isn't my first language, so do correct me if I've made some sort of mistake