I was just reading through the Linux kernel source (I just wanted to read through some of it, to learn) and I noticed something that Linus Torvalds does that looked a little weird to me. So I tried it and it compiles:
So obviously there is scoping. But can someone explain what the purpose of this is? I didn't know you could do it; I'm going to start using that -- it makes for easier reading imo.
What about this: void warn_slowpath_fmt(constchar *file, int line, constchar *fmt, ...)
What is the purpose of the "..."?
I'm glad I decided to actually read through the source. Alot of it is far too complicated for me to really understand but I'm still learning from it, so that's good.
Notice, variadic functions ( functions which have an ellipsis ) aren't really good -they don't check the argument types- but C++0x will introduce variadic templates which will be better