This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

C++ extension


Has this idea come up before?

Instead of:

class foo {
private:
   bar field;

public:
    foo() : field(0) { }
};

allow a syntax like:

class foo {
private:
    bar field(0);

public:
  foo() { }
};

This seems "more better" to me.

Perry


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]