[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kdoc
Subject:    Re: Something wrong with multiple (virtual) inheritance
From:       Marcin Kasperski <Marcin.Kasperski () softax ! com ! pl>
Date:       1999-04-13 6:10:15
[Download RAW message or body]

> 
> I haven't checked it out, but you might want to try replacing
>         foreach $ances ( splice (@_, 5) ) {
>                 # FIXME: eventually handle the type of inheritance
> 
>                 if ( $ances =~ /^\s*(public|protected|private)\s+/ ) {
>                         $ances = $';
>                 }
>                 $node->AddPropList( "Ancestors", $ances );
>         }
> by
>         foreach $ances ( splice (@_, 5) ) {
>                 # FIXME: eventually handle the type of inheritance
> 
>                 if ( $ances =~
>                         /^\s*(((public|protected|private)(\s+virtual)?)|
>                               ((virtual\s+)?(public|protected|private)))\s+/x ) {
>                         $ances = $';
>                 }
>                 $node->AddPropList( "Ancestors", $ances );
>         }
> I haven't checked it, so it might or might not work. Could you report on
> that?
> 

I checked your solution. It works and is more natural then mine, so I
will stick with it. Thanks.

-- Marcin Kasperski     Marcin.Kasperski<at>softax.com.pl
--                      marckasp<at>friko6.onet.pl
-- Moje poglądy są moimi poglądami, nikogo poza mną nie reprezentują.
-- (My opinions are just my opinions.)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic