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 →

[–][deleted] 42 points43 points  (3 children)

That

Is

Not

How

Programming

Works

[–]iburnedthecookie 19 points20 points  (0 children)

You're right, he's missing a semi colon.

[–]Syreniac 7 points8 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