private(this) vs LINT

bauss jj_1337 at live.dk
Thu Jun 30 11:37:30 UTC 2022


On Thursday, 30 June 2022 at 11:36:01 UTC, The Zealot wrote:
> On Tuesday, 28 June 2022 at 22:03:54 UTC, forkit wrote:
>> On Tuesday, 28 June 2022 at 20:58:56 UTC, Daniel N wrote:
>>>
>> Without something like private(this), hazardous interactions 
>> are inevitable, and will increase with scale (e.g. having 20+ 
>> friend functions in your class ;-)
>
> this is just not true. don't put the damm class in module scope 
> if you don't want it accessible.
>

Don't put @nogc, just stop GC allocations yourself.



More information about the Digitalmars-d mailing list