view tests/mini/multiarr4.d @ 655:93433f4b6963

Added -version=Tango in default llvmdc.conf Fixed problem with array casts, all DWT modules needed for HelloWorld1 samples now compile. Still some linking issues.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 06 Oct 2008 12:46:57 +0200
parents 1bb99290e03a
children
line wrap: on
line source

module multiarr4;
extern(C) int printf(char*, ...);

void main()
{
    char[][] a;
    a.length = 2;
    a[0] = "hello";
    a[1] = "world";
    foreach(v;a)
    {
        printf("%.*s\n", v.length, v.ptr);
    }
}