Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: deltamatrix on Wed 04/04/2007 00:56:51

Title: No method overloading?
Post by: deltamatrix on Wed 04/04/2007 00:56:51

Ok technically not a method but you know wot I mean. The ability to overload functions in AGS will be useful.

I have just written min and max maths functions (shame AGS don't seem to support these) which I hoped to overload for different data types.  :(

Thanks
Title: Re: No method overloading?
Post by: Pumaman on Wed 04/04/2007 23:14:09
There are lots of things I'd like to add to the script language, but realistically this isn't going to happen any time soon.

Still, the workaround is easy:
MaxInt(int, int)
MaxFloat(float, float)
etc :P