On Mon, 28 Nov 2011 13:32:12 +0200, Walter Bright <newshou...@digitalmars.com> wrote:

On 11/28/2011 3:19 AM, Alexey Veselovsky wrote:
Also I can't
write method implementation in different (implementation) file
(without inheritance).

  ---------- .di file ------------

  module foo;

  struct Foo {
        void foo();
  }

  ---------- .d file -------------

  module foo;

  struct Foo {
        void foo() { ... code ... }
  }

---------------------------------

His example which i replied was to the point.
Structs don't have any fields labeled private elsewhere, but the compiler still exposing private structs/functions which was used by function implementations.

Reply via email to