some_function(Foo& bar);to avoid making an extra copy of the argument. But, other than in member functions when you''re returning *this, when would you return by reference
Foo& another_function(Foo &bar)since whatever the return value refers to will then be out of scope. Are there any other valid uses of returning a reference?