28.07.2011, 06:50
Hey guys.
Just creating a function where I need to have an optional File:Parameter. But how do I set it "optional"?
I can't set it to 0 or '\0' or some other NULL code, because it got the File:Tag.
What to do?
PS: I mean this (Searching for '?'):
EDIT: Noticed that I could do it per {File,_}:... but I want to know this way though...
EDIT2: It's a bad way using getarg etc. ...
Just creating a function where I need to have an optional File:Parameter. But how do I set it "optional"?
I can't set it to 0 or '\0' or some other NULL code, because it got the File:Tag.
What to do?
PS: I mean this (Searching for '?'):
pawn Код:
public Foo(var, File:moo = ?)
EDIT2: It's a bad way using getarg etc. ...