Well, the truth is that I wanted to create a Remove function that remove an element from a given array: however I wanted to have 2 possibilities:
either call Remove(MyArray:Object[], index:Int) where index is the index of the element to remove
or call Remove(MyArray:Object[], o:Object) where o would be the object to remove from the array
So I first tried to overload the Remove function but this doesn't seem to work as the compiler refuses it...
then I had the idea to only create the Remove(MyArray:Object[], o:Object) and test o to know if it's an int or any other object... but I don't know how to do that :(
either call Remove(MyArray:Object[], index:Int) where index is the index of the element to remove
or call Remove(MyArray:Object[], o:Object) where o would be the object to remove from the array
So I first tried to overload the Remove function but this doesn't seem to work as the compiler refuses it...
then I had the idea to only create the Remove(MyArray:Object[], o:Object) and test o to know if it's an int or any other object... but I don't know how to do that :(