how to read some in vibe.d tcpconnection?
Kagamin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Mar 8 06:56:35 PDT 2015
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
More information about the Digitalmars-d-learn
mailing list