Using closure in function scope to make "real" private class members
Steven Schveighoffer
schveiguy at gmail.com
Fri Jun 3 23:30:58 UTC 2022
On 6/3/22 6:50 PM, forkit wrote:
> On Friday, 3 June 2022 at 15:41:04 UTC, Mike Parker wrote:
>> On Friday, 3 June 2022 at 12:13:47 UTC, forkit wrote:
>>
>>>
>>> Practically speaking, anyone that uses a class in D, must be put it
>>> in its own module - no exceptions.
>>
>> That's just nonsense.
>
> How is it nonsense? I don't get it.
I think he means the "no exceptions" is nonsense. There are valid
reasons to want to access private data from outside types.
-Steve
More information about the Digitalmars-d
mailing list