static and protection
John C
johnch_atms at hotmail.com
Wed Mar 1 10:53:37 PST 2006
It appears that protection attributes on static class methods don't get
recognised. This compiles without errors:
module stuff;
class Visible {
private static void hidden() {}
}
-----8<-----
module program;
import stuff;
void main() {
Visible.hidden();
}
An error is issued if hidden() is at module level. I sometimes feel that
classes are second-class citizens in D.
More information about the Digitalmars-d
mailing list