const char* or const(char)* when porting C headers?

Adam D. Ruppe destructionator at gmail.com
Sat Dec 21 16:48:31 PST 2013


On Sun, Dec 22, 2013 at 12:47:45AM +0000, Gary Willoughby wrote:
> When porting C headers which include function declarations with 
> using char* types. Is it best to use const char* or const(char)* 
> as the type in the D declaration?

Doesn't really matter: both work exactly the same way.

I kinda prefer "const char*" just because that looks the same as in C.



More information about the Digitalmars-d-learn mailing list