Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

D programming language

Name: Anonymous 2007-02-12 10:38

Name: Anonymous 2007-02-13 18:11

>>21
The foo method makes the bar method private. If you wanted that then there is nothing wrong with using a get method. But separating that into another class is probably unnecessary in the first place.

Not to mention that examples like this demonstrate nothing. This is a blown up constant integer:

class quz {
   public:
      quz (int n) : m_number(n) { }
      ~quz() { }
      int bar() { return m_number; }
   private:
      const int m_number;
};


If you try to win an argument for a language with mocked up code then you suck.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List