Explicit conversion needed to go from array to pointer??
Jarrett Billingsley
kb3ctd2 at yahoo.com
Thu Feb 22 06:56:31 PST 2007
"Henrik Harmsen" <henrik at harmsen.se> wrote in message
news:erka4u$2e0n$1 at digitalmars.com...
>
> Deprecated in what way? Made illegal or obsolete or..?
Made illegal. There were too many "gotchas" when passing arrays to C
functions (which is really the only time this conversion was used).
> Can I use an explicit cast? Will it work?
You can just use the .ptr property of the array:
char* p = s.ptr;
More information about the Digitalmars-d
mailing list