Is there a way to achieve that instead of something hacky like adding an initialized element and then removing it.

Ex. instead of:

auto stack = SList!int(0);
stack.removeFront();

Then something that just allowed you to do:
auto stack = SList!int; // Not allowed.

---

I feel like this makes containers like that a big hassle in D because you may not wanna initialize the elements of them right away.

Reply via email to