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

Ellery Newcomer ellery-newcomer at utulsa.edu
Thu Nov 12 20:24:25 PST 2009


AJ wrote:
>    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?)
> 
> 
not if you want to keep Doit virtual.



More information about the Digitalmars-d mailing list