Implementation of virtual inheritance by compilers

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • manohar

    Implementation of virtual inheritance by compilers

    Dear Dudes,
    I want to know how compiler implements virtual
    inheritance using pointers? If possible give me example explaing how
    compiler uses pointers in implementing virtual base classes?

    Thanks,

    Ciao,
    Mano
  • WW

    #2
    Re: Implementation of virtual inheritance by compilers

    manohar wrote:[color=blue]
    > Dear Dudes,[/color]

    Dear Dude,
    [color=blue]
    > I want to know how compiler implements virtual
    > inheritance using pointers?[/color]

    It might.
    [color=blue]
    > If possible give me example explaing how
    > compiler uses pointers in implementing virtual base classes?[/color]

    Nope:


    comp.compilers

    --
    WW aka Attila


    Comment

    • David Rubin

      #3
      Re: Implementation of virtual inheritance by compilers

      WW wrote:
      [color=blue][color=green]
      > > If possible give me example explaing how
      > > compiler uses pointers in implementing virtual base classes?[/color]
      >
      > Nope:
      > http://www.slack.net/~shiva/welcome.txt[/color]

      Also, see Stroustrup, 3ed, Section 2.2 (IIRC).

      /david

      --
      Andre, a simple peasant, had only one thing on his mind as he crept
      along the East wall: 'Andre, creep... Andre, creep... Andre, creep.'
      -- unknown

      Comment

      • WW

        #4
        Re: Implementation of virtual inheritance by compilers

        David Rubin wrote:[color=blue]
        > WW wrote:
        >[color=green][color=darkred]
        >>> If possible give me example explaing how
        >>> compiler uses pointers in implementing virtual base classes?[/color]
        >>
        >> Nope:
        >> http://www.slack.net/~shiva/welcome.txt[/color]
        >
        > Also, see Stroustrup, 3ed, Section 2.2 (IIRC).[/color]

        Programming Paradigms???

        --
        WW aka Attila


        Comment

        • David Rubin

          #5
          Re: Implementation of virtual inheritance by compilers

          WW wrote:[color=blue]
          >
          > David Rubin wrote:[color=green]
          > > WW wrote:
          > >[color=darkred]
          > >>> If possible give me example explaing how
          > >>> compiler uses pointers in implementing virtual base classes?
          > >>
          > >> Nope:
          > >> http://www.slack.net/~shiva/welcome.txt[/color]
          > >
          > > Also, see Stroustrup, 3ed, Section 2.2 (IIRC).[/color]
          >
          > Programming Paradigms???[/color]

          I don't have it in front of me. There is a short section towards the
          front which illustrates how virtual table pointers might be implemented.

          /david

          --
          Andre, a simple peasant, had only one thing on his mind as he crept
          along the East wall: 'Andre, creep... Andre, creep... Andre, creep.'
          -- unknown

          Comment

          • E. Robert Tisdale

            #6
            Re: Implementation of virtual inheritance by compilers

            David Rubin wrote:
            [color=blue]
            > I don't have it in front of me. There is a short section towards the
            > front which illustrates how virtual table pointers might be implemented.[/color]

            "The C++ Programming Language: Third Edition" by Bjarne Stroustrup,
            Chapter 2 A Tour of C++, Section 5 Data Abstraction,
            Subsection 5 Virtual Functions, pages 36-7.

            Comment

            • WW

              #7
              Re: Implementation of virtual inheritance by compilers

              E. Robert Tisdale wrote:[color=blue]
              > David Rubin wrote:
              >[color=green]
              >> I don't have it in front of me. There is a short section towards the
              >> front which illustrates how virtual table pointers might be
              >> implemented.[/color]
              >
              > "The C++ Programming Language: Third Edition" by Bjarne Stroustrup,
              > Chapter 2 A Tour of C++, Section 5 Data Abstraction,
              > Subsection 5 Virtual Functions, pages 36-7.[/color]

              Cool. Now all together: look at the original post and observe that the OP
              asked about *virtual base classes* and *virtual inheritance*, not virtual
              functions.

              --
              WW aka Attila


              Comment

              Working...