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

Gary Willoughby dev at nomad.so
Sun Dec 22 11:34:28 PST 2013


On Sunday, 22 December 2013 at 18:28:43 UTC, Benjamin Thaut wrote:
> Am 22.12.2013 18:39, schrieb Gary Willoughby:
>> Ah right, so:
>>
>> struct Tcl_Obj * CONST * objv
>>
>> would be:
>>
>> const(Tcl_Obj*)* objv  or  const(Tcl_Obj*)[] objv
>
> Yes

Great thanks! I thought i had a pretty good handle on C but 
porting some headers makes me scratch my head.


More information about the Digitalmars-d-learn mailing list