Looking for an equivalent to C++ std::getline in D
k-five via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed May 10 05:26:48 PDT 2017
On Wednesday, 10 May 2017 at 10:47:13 UTC, Ali Çehreli wrote:
> On 05/09/2017 01:17 AM, k-five wrote:
> > On Monday, 8 May 2017 at 21:37:17 UTC, Ali Çehreli wrote:
> >> On 05/06/2017 02:24 AM, Stanislav Blinov wrote:
> >> ------------------------------------------------
> Plus, wrapping steps of the same sollution in a function should
> not count as a different way. Otherwise, we can have infinite
> number of ways of doing the same things. For example, not!empty
> is the equivalent of the following function:
>
> auto notEmpty_0(T)(T a) {
> return !a.empty;
> }
>
> Change 0 above to 1, 2, ... :)
>
-----------------------------------------------------
Yes you are right. I admit.
More information about the Digitalmars-d-learn
mailing list