Using Self as a Method Default

BlitzMax Forums/BlitzMax Programming/Using Self as a Method Default

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.

Gabriel and grable: I'm already using null and an IF statement in that manner. There's a slight hit in performance and while it's not that big of a hit, I think being able to put self as a default would speed it up and be worth it.

If I can find someway to be able to make a default the self then I can eliminate the IF statement.

EDIT: H&K: I've already been doing what Gabriel posted since the beginning. And yes, according to the docs a default has to be a constant.

But since it has to be a constant I guess this is a dead issue unless there's some undocumented magic way to do it.