Cstrike
2010-11-07 16:42:56
This is probably the most minor suggestion ever given, but I'll throw it out there anyways.
Is it possible to have an ExitFunction (arg : Boolean);
It would Exit any given function, and set the result to whatever you want in the bracket.
There's tons of times where I have to call
or the true version of that.
I don't know if this is possible, and it is really quite minor since it's only cutting down on three lines of code.
Is it possible to have an ExitFunction (arg : Boolean);
It would Exit any given function, and set the result to whatever you want in the bracket.
There's tons of times where I have to call
if condition then
begin
Result := False;
Exit;
end; or the true version of that.
I don't know if this is possible, and it is really quite minor since it's only cutting down on three lines of code.
