how to read some in vibe.d tcpconnection?
zhmt via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Mar 9 03:07:50 PDT 2015
On Sunday, 8 March 2015 at 13:56:37 UTC, Kagamin wrote:
> On Sunday, 8 March 2015 at 03:09:00 UTC, zhmt wrote:
>> Yes, this a good idea, if the author of vibe.d do this, will
>> be better, it is used frequently in many scenes.
>
> You can do it too, unlike in C++, in D you can write extension
> methods to any type, as long as they are visible, you can call
> them on the first argument, it's called UFCS:
> http://dlang.org/function.html#pseudo-member
This is a good idea. I take it.
Thank u very much, you are so kind.
More information about the Digitalmars-d-learn
mailing list