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

Reply via email to