comparison tangotests/lazy1.d @ 329:8c1dc3e705da trunk

[svn r350] Fixed incorrect function types for lazy arguments. looks like lazy arguments have never even worked :o well.. now they should.
author lindquist
date Fri, 11 Jul 2008 01:34:04 +0200
parents
children
comparison
equal deleted inserted replaced
328:7086a84ab3d6 329:8c1dc3e705da
1 module tangotests.lazy1;
2
3 extern(C) int printf(char*, ...);
4
5 void main()
6 {
7 lazystr("whee\n");
8 }
9
10 void lazystr(lazy char[] msg)
11 {
12 printf("%.*s", msg.length, msg.ptr);
13 }