Why explicit cast?

Jarrett Billingsley kb3ctd2 at yahoo.com
Mon Feb 12 17:46:02 PST 2007


"Andreas Kochenburger" <akk at nospam.org> wrote in message 
news:eqqfqp$9dq$1 at digitalmars.com...

> I got also a bit frustrated about the (at least for me, messy) "very" 
> flexible string handling in D: static arrays, dynamic arrays, strings, 
> C-like strings (to be converted with toStringz), then I have to import 
> std.c.string and std.string and then I have to add .ptr to a pointer to a 
> static array string, when I use the C-function strtok from std.c.string it 
> claims char* pointers and does not want char[] because it is a static 
> array and its name is not the pointer to its first element etc etc ..... 
> grrrrrgh

Maybe you can post some of the more.. offensive code and we might be able to 
show you a more D-like way to do it :) 





More information about the Digitalmars-d-announce mailing list