Re: D equivalent of C++ explicit

2021-08-20 Thread Tejas via Digitalmars-d-learn
On Friday, 20 August 2021 at 05:43:49 UTC, evilrat wrote: On Thursday, 19 August 2021 at 18:04:58 UTC, Tejas wrote: On Thursday, 19 August 2021 at 17:43:59 UTC, Paul Backus wrote: On Thursday, 19 August 2021 at 17:38:14 UTC, Tejas wrote: As the topic says: Is there an equivalent to C++'s

Re: D equivalent of C++ explicit

2021-08-19 Thread evilrat via Digitalmars-d-learn
On Thursday, 19 August 2021 at 18:04:58 UTC, Tejas wrote: On Thursday, 19 August 2021 at 17:43:59 UTC, Paul Backus wrote: On Thursday, 19 August 2021 at 17:38:14 UTC, Tejas wrote: As the topic says: Is there an equivalent to C++'s `explicit` keyword in D? No, because all constructors are

Re: D equivalent of C++ explicit

2021-08-19 Thread Tejas via Digitalmars-d-learn
On Thursday, 19 August 2021 at 18:11:20 UTC, Paul Backus wrote: On Thursday, 19 August 2021 at 18:04:58 UTC, Tejas wrote: On Thursday, 19 August 2021 at 17:43:59 UTC, Paul Backus wrote: On Thursday, 19 August 2021 at 17:38:14 UTC, Tejas wrote: As the topic says: Is there an equivalent to

Re: D equivalent of C++ explicit

2021-08-19 Thread Paul Backus via Digitalmars-d-learn
On Thursday, 19 August 2021 at 18:04:58 UTC, Tejas wrote: On Thursday, 19 August 2021 at 17:43:59 UTC, Paul Backus wrote: On Thursday, 19 August 2021 at 17:38:14 UTC, Tejas wrote: As the topic says: Is there an equivalent to C++'s `explicit` keyword in D? No, because all constructors are

Re: D equivalent of C++ explicit

2021-08-19 Thread Tejas via Digitalmars-d-learn
On Thursday, 19 August 2021 at 17:43:59 UTC, Paul Backus wrote: On Thursday, 19 August 2021 at 17:38:14 UTC, Tejas wrote: As the topic says: Is there an equivalent to C++'s `explicit` keyword in D? No, because all constructors are explicit in D. Oh... then I guess I'll have to manually

Re: D equivalent of C++ explicit

2021-08-19 Thread Paul Backus via Digitalmars-d-learn
On Thursday, 19 August 2021 at 17:38:14 UTC, Tejas wrote: As the topic says: Is there an equivalent to C++'s `explicit` keyword in D? No, because all constructors are explicit in D.

D equivalent of C++ explicit

2021-08-19 Thread Tejas via Digitalmars-d-learn
As the topic says: Is there an equivalent to C++'s `explicit` keyword in D?