Problem Passing Struct to C

Robert Clipsham robert at octarineparrot.com
Fri May 6 12:05:46 PDT 2011


On 06/05/2011 19:40, Jacob Carlborg wrote:
>> No, D implicitly casts string literals to zero-terminated const(char)*.
>> That part is fine.
>>
>> -Steve
>
> Since when?

Since const was introduced, before then they implicitly casted to char* 
instead. And that has been the case since early D1.

-- 
Robert
http://octarineparrot.com/


More information about the Digitalmars-d-learn mailing list