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

KingJoffrey KingJoffrey at KingJoffrey.com
Fri May 18 12:52:03 UTC 2018


On Friday, 18 May 2018 at 12:26:14 UTC, Gheorghe Gabriel wrote:
>
> Good idea. Or: private(this)
> Because using "this" it is easier tu put this code in a mixin 
> for multiple classes.

Also, it also removes the redundancy of referring to the actual 
class name - as in:

private(this) int i; // Nice!

private(yourclassname) int i; // yuk. unneccesary redundancy.



More information about the Digitalmars-d mailing list