new DIP47: Outlining member functions of aggregates

Ettienne Gilbert ettienne.gilbert at gmail.com
Sun Sep 8 09:18:08 PDT 2013


On Sunday, 8 September 2013 at 13:00:11 UTC, Dmitry Olshansky 
wrote:
> 08-Sep-2013 16:02, Michel Fortin пишет:
[Snip]
>>
>> Example:
>>
>>     // test.di
>>     module test;
>>
>>     class A {
>>         void foo(int a, int b);
>>     }
>>
>>     // test.d
>>     import module test; // import declarations from the .di 
>> file
>>
>>     void A.foo(int a, int b) {
>>         // member function definition
>>     }
>>
>
> With this suggestion it finally becomes sane.

+1


More information about the Digitalmars-d mailing list