C
Christoph Rabel
Smeckler said:Would you care to be more specific about your objection to my code?
First, this has undefined behaviour. (Dereferencing a 0 Pointer)
Second, how do you test the returned reference for 0??
You cannot. So somebody ends up with a dangling reference. And probably
crashes a while later when he tries to use it...
Christoph