Frits van Bommel a écrit : > Arrays need a length, which you could also pass separately: > --- > import std.stdio; > > void bar(size_t length, void* str) > { > writefln((cast(char*) str)[0 .. length]); > } > > void main() > { > char[] foo; > > foo = "Hello world"; > > bar(foo.length, cast(void*) foo); > } > --- Thanks :)