One of my students recently hit a problem with Angelscript using a script like this:
class MyTest{ void MyTest() // the "void" here is a mistake, but the method is still valid { print("I am not a constructor"); }}void main(){ MyTest myTest; myTest.MyTest(); // legal call prints the text}
Is it intended to support methods looking like a constructor? I have never tried that in C++. At least a warning in this case might be appropriate.
What do you think?
xad