Sealed classes - would you want them in D? (v2)

arturg var.spool.mail700 at gmail.com
Thu May 17 06:03:19 UTC 2018


On Thursday, 17 May 2018 at 05:06:54 UTC, KingJoffrey wrote:
>
> If people want to propose putting each class in it's own 
> module, that does not address my requirements, and therefore is 
> not helpful to this discussion.

you could declare the public api of your class inside an actual 
interface then use it instead of the class, that wont give you 
access to the private members of the class.


More information about the Digitalmars-d mailing list