Do something when setting a type parameter?

BlitzMax Forums/BlitzMax Beginners Area/Do something when setting a type parameter?

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.

Tiger:
Yeah, I know you can use a special value to get around the null problem, but you have to choose your value carefully for each case to make sure it doesn't conflict with the functioning of the method.

In this case, -1 would be a bad choice, because Order can be negative. $FFFFFFFF on the other hand would be fine, because there's no way anyone's gonna use an order of more than plus or minus 20 or so.

Not really working out to be as nice an implementation as I hoped. I think this idea might be better suited for the garbage bin. :-)