Things we want in BMax2, One thing Per post

Miscellaneous Forums/General Discussion/Things we want in BMax2, One thing Per post

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Request:
Overloading

Example:
Type Simple
Field F1:Int
Method Add(P1:Int)
...
EndMethod
Method Add(P1:Float)
...
EndMethod
EndType
Reason:
Although its perfectly reasonable to have addInt() and addFloat and addString() etc, it does become a bit of a strain to read on long methods with a few parameters. (At least BLIDE makes it easy to remember them)

Difficulty:
As far as I can see this is a precomilation thing. That is as far as the real code is concerned ADDInt(p1:Int) and Addfloat(P1:Float) are as different as Add(P1:int) and Add(P1:Float), they would just be pointers to the method. All that is happening would be that the compiler is sectretly adding the Int bit to ADD(P1:Int) when it compiles.