digitalmars.D.learn - How to initializing an array of strings?
- Bill Baxter (3/3) Oct 30 2006 How does one do this?
- Johan Granberg (3/8) Oct 30 2006 I don't have a compiler here but have you tried this.
- Bill Baxter (4/15) Oct 30 2006 Thanks! That does it (without the trailing [])
How does one do this? char[][] words = ["a", "list", "of", "some", "words"]; --bb
Oct 30 2006
Bill Baxter wrote:How does one do this? char[][] words = ["a", "list", "of", "some", "words"]; --bbI don't have a compiler here but have you tried this. char[][] words = ["a"[], "list", "of", "some", "words"][];
Oct 30 2006
Johan Granberg wrote:Bill Baxter wrote:Thanks! That does it (without the trailing []) char[][] words = ["a"[], "list", "of", "some", "words"]; --bbHow does one do this? char[][] words = ["a", "list", "of", "some", "words"]; --bbI don't have a compiler here but have you tried this. char[][] words = ["a"[], "list", "of", "some", "words"][];
Oct 30 2006