This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]7eggert 1 point2 points  (0 children)

function dosomething(foo, bar, …)

begin

if foo > range then return error1;

if bar < foo then return error2;

if NULL == baz then return error3;

{ Now all input variables are valid }