Are out-of-class-declaration method definitions allowed?

AJ aj at nospam.net
Thu Nov 12 20:19:21 PST 2009


   I can't imagine anyone that knows D doesn't also know C++, but the 
opposite is hardly true, so here's some valid C++ that I'm wondering if 
there is an equivalent style allowed in D:

class MyClass
{
  public:
   void DoIt();
};

void MyClass::DoIt()
{
    // do it
}

   (Aside: D has no 'inline' keyword, correct? And, should I post questions 
like this post in the learn group? Even if the potential is likely that a 
language design discussion may result?)





More information about the Digitalmars-d mailing list