On Wednesday, 14 June 2017 at 12:35:05 UTC, Mike B Johnson wrote:
void main() { Test!Duck d; d.quack(); }which, unfortunately causes a segmentation fault ;)
I think that is because you are not initializing d using new Test!Duck();
Balagopal Komarath via Digitalmars-d-learn Wed, 14 Jun 2017 06:22:17 -0700
On Wednesday, 14 June 2017 at 12:35:05 UTC, Mike B Johnson wrote:
void main() { Test!Duck d; d.quack(); }which, unfortunately causes a segmentation fault ;)
I think that is because you are not initializing d using new Test!Duck();