Then it isn't very anonymous is it?
This is a discussion on which one run first, destructor or return method within the C++ Programming forums, part of the General Programming Boards category; Then it isn't very anonymous is it?...
Then the object is anonymous but the reference is not?
I might be wrong.
Quoted more than 1000 times (I hope).Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
But the reference can't be rebound, so for all intents and purposes, it is the object.
Or in other words: a reference is an alias, an alternative name for an object. If there is no primary name, then the alias is the only name.
All the buzzt!
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law