digitalmars.D.learn - Defining an Array
- Vino (18/18) Dec 16 2017 Hi All,
Hi All, Request your help for the below as how do i add an item to a array in the array is defined as Type 2. Type 1: Working import std.conatiner.array; void main () { auto PStore = Array!(string)("Test1", "Test1") } Type 2: not working import std.conatiner.array; void main () { Array!(string) PStore; PStore = ("Test1", "Test1"); or PStore ~= ("Test1", "Test1"); or PStore.insertBack("Test1", "Test1"); } From, Vino.B
Dec 16 2017