view test/arrays2.d @ 104:4d1e9eb001e0 trunk

[svn r108] Now basic suppport for complex types. =,+,-,*,/ are supported.
author lindquist
date Mon, 19 Nov 2007 02:58:58 +0100
parents c53b6e3fe49a
children
line wrap: on
line source

char[] get()
{
    return "hello";
}

void param(char[] s)
{
}

void refparam(ref char[] s)
{
}

void main()
{
    char[] dstr = get();
    param(dstr);
    refparam(dstr);
}