bordemstirs
Member
Are all maps considered the same type for the purposes of function overloading?
I have
Gets me the error:
Function 'to_string( matrix )' defined multiple times (mathlib.ash, line 485)
But simply assuming I had defined it elsewhere and blocking out the one at that location merely changes the error message to:
Function 'to_string( matrix )' undefined. This script may require a more recent version of KoLmafia and/or its supporting scripts. (test.ash, line 10)
And yes, tesh.ash imports mathlib.
I have
Code:
typedef float[int] vector;
typedef float[int,int] matrix;
string to_string(vector v){
. . .
}
string to_string(matrix m){
. . .
}
Gets me the error:
Function 'to_string( matrix )' defined multiple times (mathlib.ash, line 485)
But simply assuming I had defined it elsewhere and blocking out the one at that location merely changes the error message to:
Function 'to_string( matrix )' undefined. This script may require a more recent version of KoLmafia and/or its supporting scripts. (test.ash, line 10)
And yes, tesh.ash imports mathlib.