sourcepawn icon indicating copy to clipboard operation
sourcepawn copied to clipboard

Overloading functions inside method maps

Open stickz opened this issue 6 years ago • 1 comments

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);
	}
}

stickz avatar Aug 05 '19 01:08 stickz

Overloading is probably feasible - it's like a 6-7 out of 10 on the spcomp difficulty scale.

dvander avatar Aug 05 '19 05:08 dvander