| Thread overview | |||||
|---|---|---|---|---|---|
|
January 22, 2009 Protection in BaseClassList: semantics undefined? | ||||
|---|---|---|---|---|
| ||||
Hi, http://www.digitalmars.com/d/2.0/class.html In the grammar specification I read that a base class or interface name can be prepended a protection attribute. But I don't find a word about the semantics thereof... Can anyone tell (and update the docs)? Regards, Harry | ||||
January 22, 2009 Re: Protection in BaseClassList: semantics undefined? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Harry Vennik | On Thu, Jan 22, 2009 at 9:43 AM, Harry Vennik <htvennik@zonnet.nl> wrote:
> Hi,
>
>
> http://www.digitalmars.com/d/2.0/class.html
>
> In the grammar specification I read that a base class or interface name can be prepended a protection attribute. But I don't find a word about the semantics thereof... Can anyone tell (and update the docs)?
As far as most people can tell, it's an artifact from very early on in D's development. It was probably originally supposed to have MI but that was dropped. The compiler accepts public/private/protected on the base class but it's useless as it breaks things.
| |||
January 22, 2009 Re: Protection in BaseClassList: semantics undefined? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jarrett Billingsley | Jarrett Billingsley schrieb: > As far as most people can tell, it's an artifact from very early on in D's development. It was probably originally supposed to have MI but that was dropped. The compiler accepts public/private/protected on the base class but it's useless as it breaks things. http://d.puremagic.com/issues/show_bug.cgi?id=177 | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply