`restricted` member variables

Mike Parker aldacron at gmail.com
Tue Jun 21 01:17:14 UTC 2022


On Tuesday, 21 June 2022 at 01:01:09 UTC, deadalnix wrote:

> I'm pretty sure x can be encapsulated in some struct here.

Yes, I did note that later in the post you just replied to :-) 
Put it in a struct and then a different module. So `restricted` 
is absolutely pointless because of that. It's the obvious 
solution that I overlooked until I read your comment about two 
classes bundled in one.


More information about the Digitalmars-d mailing list