Future of memory management in D
12345swordy
alexanderheistermann at gmail.com
Fri Nov 19 16:59:27 UTC 2021
On Friday, 19 November 2021 at 16:14:41 UTC, Alexandru Ermicioi
wrote:
> On Friday, 19 November 2021 at 15:39:54 UTC, 12345swordy wrote:
>>
>> It violate encapsulation. Which at that point you might as
>> well make the l-value public.
>>
>> -Alex
>
> It doesn't.
> Best regards,
> Alexandru.
Yes it does, you are directly accessing to the variable itself
here. The point of properties is to grant indirect access to it.
- Alex
More information about the Digitalmars-d
mailing list