Overriding Create()

BlitzMax Forums/BlitzMax Beginners Area/Overriding Create()

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.

Overloading isn't in BM, so it doesn't work with functions either.
It isn't a that clean OO implementation anyway, only C language "bloodline" supports it from what I know and most likely, C# only does it because too many are used to C++ way of doing it ...

Doing it through:

.CreateFromInt(someInt,someInt)
.CreateFromVector(2DIntVector[])
.CreateFromString(someString)

is the far cleaner way and the create function declaration is more intuitive and descriptive as well (instead of several creates that await different information)