sourcepawn
sourcepawn copied to clipboard
Overloading functions inside method maps
I would like to request the ability to overload functions inside method maps. For instance, this should be possible to implement inside the same method map.
methodmap Math
{
public static int Abs(int number)
{
return number >= 0 ? number : (number * -1);
}
public static float Abs(float number)
{
return number >= 0 ? number : (number * -1);
}
}
Overloading is probably feasible - it's like a 6-7 out of 10 on the spcomp difficulty scale.