Thanks for all replies, that was very helpful. I have one more question about
inout. If I understand correctly, it is always coupled to the use of a parameter
and cannot be used to get rid of the double GetBar in the following C++ example:

class Foo
{
public:
  const Bar& GetBar() { return bar; } const
        Bar& GetBar() { return bar; }
private:
  Bar bar;
}

Is this correct? Thx for your replies.

Reply via email to