Future of memory management in D

Timon Gehr timon.gehr at gmx.ch
Fri Nov 19 15:51:41 UTC 2021


On 19.11.21 16:50, Timon Gehr wrote:
> On 19.11.21 16:39, 12345swordy wrote:
>> On Friday, 19 November 2021 at 14:30:39 UTC, Alexandru Ermicioi wrote:
>>>
>>> Why is it bad?
>>>
>>> Best regards,
>>> Alexandru.
>>
>> It violate encapsulation. Which at that point you might as well make 
>> the l-value public.
>>
>> -Alex
> 
> This is just one way to make an lvalue public. Note that the address 
> might not be constant/at a constant offset.

(Also, there might be lifetime tracking of some sort going on.)


More information about the Digitalmars-d mailing list