On Friday 05 March 2004 12:14, Alfredo Braunstein wrote:
> What's the point on having
>
> class duh {
> public:
>         int & foo() { return foo_; }
> private:
>         int foo_;
> }
>
> What's the advantage wrt. have a public foo? (I can only see
> disadvantages)

  Suppose you later change the implementation and not the interface. That is 
not possible with a public data member.

  And don't tell me we don't ue to change the implementation details, I 
would laugh in your face. (Finally an oportunity to throw a white glove on 
a friday).

> Alfredo

-- 
José Abílio

LyX and docbook, a perfect match. :-)

Reply via email to