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

Gary Willoughby dev at nomad.so
Sun Dec 22 07:49:42 PST 2013


On Sunday, 22 December 2013 at 04:06:05 UTC, Alexandr Druzhinin 
wrote:
> 22.12.2013 07:47, Gary Willoughby пишет:
>> 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?
> C vs D
> const char* == const(char)*
> const char const* == const char*

Thanks, that makes sense. But how would i port this parameter:

struct Tcl_Obj * CONST * objv

Maybe like this?:

const Tcl_Obj[]* objv


More information about the Digitalmars-d-learn mailing list