Mercurial > projects > ldc
view test/vararg5.d @ 310:d20cf0dec9c1 trunk
[svn r331] Fixed, forgot to default initialize the SynchronizedStatement enclosinghandler.
author | lindquist |
---|---|
date | Sat, 28 Jun 2008 11:50:28 +0200 |
parents | 895e1b50cf2a |
children |
line wrap: on
line source
module vararg5; import tango.core.Vararg; extern(C) int printf(char*, ...); void func(...) { char[] str = va_arg!(char[])(_argptr); {printf("%.*s\n", str.length, str.ptr);} } void main() { char[] str = "hello"; func(str); }