www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Ain't that a bit redundant?

reply Wolfgang Draxinger <wdraxinger darkstargames.de> writes:
Title says it all:

<cite src="http://www.digitalmars.com/d/class.html">

...

BaseClassList:
        : SuperClass
        : SuperClass InterfaceClasses
        : InterfaceClass
        : InterfaceClass InterfaceClasses
                         ^^^^^^^^^^^^^^^^

...

InterfaceClasses:
        InterfaceClass
        InterfaceClass InterfaceClasses
                       ^^^^^^^^^^^^^^^^
...
</cite>

Which of both is going to be dropped? I'd suggest to change to

BaseClassList:
        : SuperClass
        : SuperClass InterfaceClasses
        : InterfaceClasses

That does it.

Wolfgang Draxinger
Jul 24 2006
next sibling parent Walter Bright <newshound digitalmars.com> writes:
You're right, I'll fix it. Thanks!
Jul 24 2006
prev sibling parent reply Stewart Gordon <smjg_1998 yahoo.com> writes:
Wolfgang Draxinger wrote:
<snip>
 Which of both is going to be dropped? I'd suggest to change to
 
 BaseClassList:
         : SuperClass
         : SuperClass InterfaceClasses
         : InterfaceClasses
 
 That does it.
No it doesn't. Surely it should be BaseClassList: : SuperClass : SuperClass , InterfaceClasses : InterfaceClasses InterfaceClasses: : InterfaceClass : InterfaceClass , InterfaceClasses Stewart. -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/M d- s:- C++ a->--- UB P+ L E W++ N+++ o K- w++ O? M V? PS- PE- Y? PGP- t- 5? X? R b DI? D G e++++ h-- r-- !y ------END GEEK CODE BLOCK------ My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit.
Jul 27 2006
next sibling parent Wolfgang Draxinger <wdraxinger darkstargames.de> writes:
Stewart Gordon wrote:

 InterfaceClasses:
      : InterfaceClass
      : InterfaceClass , InterfaceClasses
Well, I assumed that being taken over from the status quo. Wolfgang Draxinger -- E-Mail address works, Jabber: hexarith jabber.org, ICQ: 134682867 GPG key FP: 2FC8 319E C7D7 1ADC 0408 65C6 05F5 A645 1FD3 BD3E
Jul 27 2006
prev sibling parent Hasan Aljudy <hasan.aljudy gmail.com> writes:
Stewart Gordon wrote:
 Wolfgang Draxinger wrote:
 <snip>
 
 Which of both is going to be dropped? I'd suggest to change to

 BaseClassList:
         : SuperClass
         : SuperClass InterfaceClasses
         : InterfaceClasses

 That does it.
No it doesn't. Surely it should be BaseClassList: : SuperClass : SuperClass , InterfaceClasses : InterfaceClasses InterfaceClasses: : InterfaceClass : InterfaceClass , InterfaceClasses Stewart.
That is still ambiguous. class A : B, C { } is B a SuperClass or an Interface? it should be: BaseClassInterfaceList: : InterfaceClassList InterfaceClassList: InterfaceClass InterfaceClass, InterfaceClassList
Jul 27 2006