infinite parameters???

Started by
9 comments, last by Enigma 17 years, 4 months ago
Quote:Original post by DjMaSh
Quote:Original post by Enigma
Why do you want to do this? 99.9% of the time there are better ways.


I dont really have a purpose for it just yet, I just wanted to know if it is possible. It always comes into my mind and i think it would be handy everynow and then. Besides, what harm can a little more knowledge do?

And what about that .1%?

OK. It just sounded from your original post that you wanted a solution to a specific problem. Of course it's useful to know about things like variable length argument lists. My warning was simply based on Hammer and Nail syndrome ("When your only tool is a hammer, every problem looks like a nail."). People who learn about variable argument lists have a tendency to then go and apply them in lots of situations. They seem neat at first, but have lots of subtle problems that can bite you quite hard.

Σnigma

This topic is closed to new replies.

Advertisement