partial class definitions

Jakob Praher jp at hapra.at
Mon Apr 2 02:48:36 PDT 2007


hi all,

I am new to D.
I was wondering wheather D supports some kind of partial class 
definition, that means one class that is implemented in several 
translation units?


Foo.d:
class Foo
{
    XMLNode toXML();


    void process()
    {
        XMLNode node = this.toXML();
        //...
    }

}

FooXml.d:

class Foo {

    XMLNode toXML()
    {
       //...
    }
}

thanks
-- Jakob



More information about the Digitalmars-d mailing list