Problem Passing Struct to C

Jacob Carlborg doob at me.com
Sun May 8 10:44:38 PDT 2011


On 2011-05-06 21:05, Robert Clipsham wrote:
> 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.

I think I've heard of it but I thought that was before D1 and had been 
remove.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list