base class protection

Jarrett Billingsley jarrett.billingsley at gmail.com
Sat Jun 20 10:00:29 PDT 2009


On Sat, Jun 20, 2009 at 4:51 AM, qniol<qniol at o2.pl> wrote:
> Hello!
>
> What's "protection" here for?
>
> class Duper : protection Super { ... }
>
> for protection being either:
> private
> package
> public
> export
>
> and Super being a class.

It's a remnant from presumably an earlier period in D's development.
Without MI, it's pointless.  The default is public, and using anything
other than public just breaks things.

I'm surprised (well,.. not really) that it's been in the spec and
compiler for so long without having been removed.



More information about the Digitalmars-d mailing list