May 25, 2005
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
package (internal in C#??)
protected
private
export (What is this???)

And .NET (using C# syntax) has these:

public
internal
protected
protected internal (using 2 keywords for one meaning???  $@$%$@#@!!!!!)
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
> package (internal in C#??)
> protected
> private
> export (What is this???)
> 
> And .NET (using C# syntax) has these:
> 
> public
> internal
> protected
> protected internal (using 2 keywords for one meaning???  $@$%$@#@!!!!!)
> private
> 
> -Sam
> sam987883@yahoo.com