member arguments in D?

Penguin davidcollien at gmail.com
Sun Apr 26 01:00:17 PDT 2009


What do you think about:

class Foo {

   int a;
   float b;

   this( member a, member b ) {

   } 

}

instead of:

class Foo {

   int a;
   float b;

   this( int a, float b ) {
      this.a = a;
      this.b = b;
   } 

}



More information about the Digitalmars-d mailing list