C++ pimpl

so so at so.so
Sun Jan 22 16:49:43 PST 2012


On Mon, 23 Jan 2012 02:33:47 +0200, Timon Gehr <timon.gehr at gmx.ch> wrote:

> This seems to work.
>
> a.di:
>
> final class A{
>      private this();
>      static A factory();
>      T1 publicMember1(int x);
>      T2 publicMember2(float y);
>      T3 publicField;
>      // ...
> }
>
> a.d:
>
> class A{
>      static A factory(){return new A;}
>      T1 publicMember1(int x){ ... }
>      T2 publicMember2(float y){ ... }
>      T3 publicField;
>      // ...
> private:
>      T1 field1;
>      T2 field2;
> }

Oh? How so? Within current framework it is not possible.
Probably a glitch in matrix :)


More information about the Digitalmars-d mailing list