digitalmars.D - Does C#'s 'protected internal' attribute exist in D?
- Sam (16/16) May 25 2005 Hey, does anyone know if D has an equivalent for .NET's 'protected inter...
- Unknown W. Brackets (20/41) May 25 2005 I don't know what protected internal is, but I'll explain what D has:
Hey, does anyone know if D has an equivalent for .NET's 'protected internal' access modifier? Here is my current knowledge of what D has: public protected private export (What is this???) public internal protected private -Sam sam987883 yahoo.com
May 25 2005
I don't know what protected internal is, but I'll explain what D has: public access to all, where ever they may be (like C.) protected access to members and any inheriting classses (like C.) private access only to members, and not to inheriting classes (like C.) package access to anything within the package, private outside the package. This means that "test.class" gives access to "test.blah" and "test.arg" but not "something.main". export code outside the program (separate executables, etc.) can access the member. Additionally, all classes within a module are assumed to have "private-level" access to each other's members (since presumably the author wouldn't do anything stupid with their own code.) More information here: http://www.digitalmars.com/d/attribute.html -[Unknown]Hey, does anyone know if D has an equivalent for .NET's 'protected internal' access modifier? Here is my current knowledge of what D has: public protected private export (What is this???) public internal protected private -Sam sam987883 yahoo.com
May 25 2005