Our Sister

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri May 27 18:28:44 PDT 2016


On 05/27/2016 06:09 PM, tsbockman wrote:
> On Friday, 27 May 2016 at 21:25:50 UTC, Andrei Alexandrescu wrote:
>> On 05/27/2016 05:02 PM, Era Scarecrow wrote:
>>>   With the current state of things, I'll just take your word on it.
>>
>> Reasoning is simple - yes we could safely convert to const(char)[] but
>> that means effectively all refcounting is lost for that string. So we
>> can convert but in an explicit manner, e.g.
>> str.toGCThisWillCompletelySuckMan. -- Andrei
>
> But conversions to scope const(char)[] could be made safe, right? (If
> scope were ever fully implemented, that is.)

Yah, in principle. -- Andrei


More information about the Digitalmars-d mailing list