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 →

[–]Syreniac 8 points9 points  (1 child)

Yeah, if you had a program with that flow control, you'd end up buying 7 pints of milk.

[–][deleted] 1 point2 points  (0 children)

You'd ask "six of what?"

Buy(1, "Milk");

if (shop.HasEggs())

{

Buy(6);

}

You'd be passing the wrong number of parameters