Create empty SList or DList.

bauss jj_1337 at live.dk
Wed Jun 26 21:52:00 UTC 2019


On Wednesday, 26 June 2019 at 19:06:24 UTC, drug wrote:
> 26.06.2019 20:39, bauss пишет:
>> auto stack = SList!int(0);
>> stack.removeFront();
>> 
>> Then something that just allowed you to do:
>> auto stack = SList!int;
>
> this compiles:
> ```
> auto stack = SList!int();
> ```

Maybe something else triggered it for me but I kept getting an 
error message like "not initialized with a value" or something 
like that .

I can't reproduce it right now though.


More information about the Digitalmars-d-learn mailing list