view tests/mini/lazy1.d @ 982:b5e1797e9557

Add explicit paths to revisions.* to unbreak out-of-source build.
author Frits van Bommel <fvbommel wxs.nl>
date Thu, 19 Feb 2009 00:50:35 +0100
parents 1bb99290e03a
children
line wrap: on
line source

module tangotests.lazy1;

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

void main()
{
    lazystr("whee\n");
}

void lazystr(lazy char[] msg)
{
    printf("%.*s", msg.length, msg.ptr);
}