How to use sprintf

Alexander aldem+dmars at nk7.net
Tue Apr 26 03:31:39 PDT 2011


On 25.04.2011 17:36, Steven Schveighoffer wrote:

>>> Not when a string is defined internally as struct { size_t length; immutable(char)* ptr; }. Casting to char* is a pointer to the start of the length, not the pointer.
>>
>> Try it.
>>
> 
> I thought that "feature" was removed from D2?  Just tested it, and it's definitely not removed yet.  But it will be :)

  How exactly this feature will be removed? Disallowing opCast() which does this explicitly? ;)

Regards,
/Alexander


More information about the Digitalmars-d mailing list