package & protected?

Kagamin spam at here.lot
Wed Oct 23 16:19:17 UTC 2024


In C# it's known as `protectedinternal` access. The idea is to 
have a protected member, but also access it across a package. A 
workaround is to have an accessor:
```
class A
{
	protected int b;
	final package int b2(){ return b; }
}
```


More information about the Digitalmars-d mailing list