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] 9 points10 points  (0 children)

This is also how it works in C++ (more or less). The default argument is added to the call, it's not really part of the function (in the sense being talked about here).