[Issue 7726] 'virtual' keyword please
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Mar 19 06:32:47 PDT 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7726
--- Comment #5 from Manu <turkeyman at gmail.com> 2012-03-19 06:33:04 PDT ---
*crap, I tapped tab and the 'commit' button gained focus, and when I pressed
space bar, it posted.*
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();
  virtual void updateUnrelateds();
  // etc. 
private:
  virtual void update();
  virtual void draw();
  void handlerDelegate();
  void handlerDelegate2();
  int data1;
  float data2;
  ...
}
Ie. logically group stuff, mark the occasional virtual explicitly, continue as
final.
This looks like a fairly realistic class to me. I really want to be able to
explicitly mark each function that is virtual in this way.
-- 
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