Split class declaration and definition

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 31 05:58:34 PDT 2014


Kozzi11:

> Is possible to somehow split class declaration and definition.
>
> I mean something like this:
>
> class C
> {
>     void hello(); // just prototype
> }
>
> class C
> {
>     void hello()
>     {
>         //actual code
>     }
> }
>
> or something like this
> void C.hello() {
>     //actual code
> }

I think this is currently not possible. (And I don't like it in 
D).

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list