Function implemented outside the class

John Colvin john.loughran.colvin at gmail.com
Sun Mar 23 15:21:18 PDT 2014


On Sunday, 23 March 2014 at 22:20:39 UTC, John Colvin wrote:
> On Sunday, 23 March 2014 at 21:48:33 UTC, MarisaLovesUsAll 
> wrote:
>> Hi! I didn't find how to implement functions outside the 
>> class, like in C++.
>>
>> C++:
>> class MyClass
>> {
>>   void myFunc();
>> };
>> void MyClass::myFunc() { ... }
>>
>> Is it possible to do this in D ?
>>
>>
>> Sorry for my bad English.
>> Regards,
>> Alexey
>
> No, it's not possible.
>
> However, Combining these 3 features:

sorry, 2 features.


More information about the Digitalmars-d-learn mailing list