How to initializing an array of strings?

Johan Granberg lijat.meREM at OVE.gmail.com
Mon Oct 30 23:54:11 PST 2006


Bill Baxter wrote:

> How does one do this?
> 
>    char[][] words = ["a", "list", "of", "some", "words"];
> 
> --bb

I don't have a compiler here but have you tried this.

char[][] words = ["a"[], "list", "of", "some", "words"][];



More information about the Digitalmars-d-learn mailing list