Re: parsing parameters

2009-02-23 Thread BCS
Hello Robert, BCS wrote: Theory 1: it's a side effect of two features: this is allowed int myFunc(int) // I never use the arg so why name it? { } and this is allowed int myFunc(int i = 5) // normal defaulting { } so to avoid corner cases they are allowed in combination theory 2: it give

Re: parsing parameters

2009-02-23 Thread Robert Fraser
BCS wrote: Reply to Ellery, BCS wrote: I don't understand your question. Are you suggesting that something be added or asking why something is allowed? Why is it allowed? for example: int myfun(int=10); Theory 1: it's a side effect of two features: this is allowed int myFunc(int) //

Re: parsing parameters

2009-02-23 Thread BCS
Reply to Ellery, BCS wrote: I don't understand your question. Are you suggesting that something be added or asking why something is allowed? Why is it allowed? for example: int myfun(int=10); Theory 1: it's a side effect of two features: this is allowed int myFunc(int) // I never use

Re: parsing parameters

2009-02-23 Thread Ellery Newcomer
BCS wrote: I don't understand your question. Are you suggesting that something be added or asking why something is allowed? Why is it allowed? for example: int myfun(int=10);

Re: parsing parameters

2009-02-23 Thread BCS
I don't understand your question. Are you suggesting that something be added or asking why something is allowed?