a more fine access model?

Mike Capp mike.capp at gmail.com
Wed Jun 7 05:03:45 PDT 2006


In article <e65t57$2osj$1 at digitaldaemon.com>, icee says...
>
>D's access control maybe too simplified.
>e.g if i need a member accessed by both subclass and package members, (package
>protected foo?).

C# has a "protected internal" access which does exactly this, but in ~3 years of
writing C# I've never felt the urge to use it.

If it's just an odd one-off case, I'd suggest using a 'protected' member and a
'package' getter property, or vice versa, rather than cluttering up the
language.

cheers
Mike





More information about the Digitalmars-d mailing list