will we ever see function overloading in BlitzMax, it would be very useful IMHO. For those that dont know it allows you to have the same function return loads of different types. An example would be:
Both functions have the same name just different parameters, this would be an overloaded function and would be massively helpful in coding some systems in max. Another approach would be a extra variable type var as an example:
All are do-able and would be majorly helpful IMHO.
Function PlayerInformation:Int() return 3 End Function Function PlayerInformation:String() return "Playername" End Function
Both functions have the same name just different parameters, this would be an overloaded function and would be massively helpful in coding some systems in max. Another approach would be a extra variable type var as an example:
Function ReturnInformation:Var( operator:Int ) Select Operator case 0 return 1 case 1 return "PlayerName" end Select end function
All are do-able and would be majorly helpful IMHO.