view test/arrays2.d @ 42:0b9b286b67b6 trunk

[svn r46] fix for shift operations added a simple opengl binding in demos
author lindquist
date Fri, 19 Oct 2007 15:16:11 +0200
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);
}