hojtsy Messages: 241 Registered: January 2006 Location: Budapest, Hungary
Experienced Member
So what about array.Add().ProcessSomething(s) ? Is that trivial for everyone? The reference is returned for convenience so that client code could operate on the newly inserted element. The same would be needed for the other Add methods.
So what about array.Add().ProcessSomething(s) ? Is that trivial for everyone? The reference is returned for convenience so that client code could operate on the newly inserted element. The same would be needed for the other Add methods.
I think there is no ambiguity....
Well, I am not saying that what you propose is a bad idea.... Just during 6 years of current interface I never really felt that this would help.
Maybe it is just that U++ way of coding does not lead to situations where this has any benefit.
Think: you are using Add with parameter variant just for value elements - and you are seldom calling methods for values, much less mutating methods. That is also the source of ambiguity.