Enforcing Semantic Discipline in Language Design

Peter C pc at gmail.com
Sat Oct 18 23:55:18 UTC 2025


     if (visd.visibility.kind == Visibility.Kind.protected_ && 
!sds.isClassDeclaration())
             {
                 .error(visd.loc, "%s is only valid within class 
declarations that support inheritance", 
visd.toPrettyChars(false));
             }



More information about the Digitalmars-d mailing list