Challenge: write a reference counted slice that works as much as possible like a built-in slice

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Wed Nov 10 17:24:19 UTC 2021


On Wednesday, 10 November 2021 at 14:04:18 UTC, jmh530 wrote:
> The struct is instantiated [1], it just doesn't run the 
> constructor in that case. You can always disable the default 
> constructor. Doesn't C++ have an implicit default constructor 
> also?

D does not allow a default constructor all… that is weird.

In C++ you get implicit constructors only if you provided no 
constructors at all.




More information about the Digitalmars-d mailing list