Force null Type?

Blitz3D Forums/Blitz3D Programming/Force null Type?

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.

Yeah, I kinda agree, you outta be able to specify a type as null by default in the function parameters.

On the other hand, you can always check within the function if a given type parameter is null - if need be. When you call the parameter, you can simply pass 'null' to your function, i.e. "DoMyWork red, 117, Null" works just fine. But I still think we need defaults for type instances as function parameters.