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.

Here's what I'm trying to do. I want to use self as a method default like so.

Method Sample(a:blah, b:blah = self)
     self.ni = b.n + a.n
End Method

I get a "Self can only be inside a Method" error. Is there any way to make a default the main type being used?