>  module foo;
>
>  struct Foo {
>       void foo();
>  }
>
>  ---------- .d file -------------
>
>  module foo;
>
>  struct Foo {
>       void foo() { ... code ... }
>  }

ok. What about:

struct Foo {
    int a;
    int b;
    // 100 more fields
    ...
    void foo();
}

Did I must write in implementation all this 100+ fields in implementation?

In Ada and Modula there is 2 languages: one for implementation and
another for specification. (specification language not subset of
implementation language). I think it is right.

Reply via email to