[Issue 7726] 'virtual' keyword please

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 19 06:59:50 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7726



--- Comment #6 from Piotr Szturmaj <pszturmaj at tlen.pl> 2012-03-19 07:00:07 PDT ---
You can write it like this:

class MyClass
{
final {
  this();

  @property void property1(int t)
  @property int property1()

  @property void thing(int t)
  @property int thing()
  void doThing()

  void addUnrelated(Unrelated x);
  Unrelated getUnrelated();
}
  void updateUnrelateds();

  // etc. 

private:
  void update();
  void draw();

final {
  void handlerDelegate();
  void handlerDelegate2();
}

  int data1;
  float data2;
  ...
}

IMHO it makes no sense to introduce virtual keyword since virtual in D is the
default...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list