Mercurial > projects > ldc
diff test/dotproduct.d @ 4:e116aa1488e6 trunk
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
fixed passing string literals as array parameters
few other fixes
moved some array routines into gen/arrays
author | lindquist |
---|---|
date | Mon, 03 Sep 2007 17:34:30 +0200 |
parents | c53b6e3fe49a |
children | 0c5f410d973c |
line wrap: on
line diff
--- a/test/dotproduct.d Sat Sep 01 22:26:33 2007 +0200 +++ b/test/dotproduct.d Mon Sep 03 17:34:30 2007 +0200 @@ -7,9 +7,9 @@ return x*v.x + y*v.y + z*v.z; } - void print(char* n) + void print(char[] n) { - printf("%s = vec3(%.4f, %.4f, %.4f)\n", n, x,y,z); + printf("%.*s = vec3(%.4f, %.4f, %.4f)\n", n.length, n.ptr, x,y,z); } }