V Table

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

    #1

    V Table

    Where will be V Table stored?
  • Victor Bazarov

    #2
    Re: V Table

    Kittu wrote:[color=blue]
    > Where will be V Table stored?[/color]

    What's a "V Table"? If you mean the 'virtual function pointer table',
    then it's usually stored in your program memory. It is unspecified in
    the language where precisely it's stored because it's not defined by
    the language and is what is called "an implementation detail".

    V

    Comment

    • Ron Natalie

      #3
      Re: V Table

      Kittu wrote:[color=blue]
      > Where will be V Table stored?[/color]

      VTables are an impelementation concept. You'll need to ask
      whoever knows your compiler well. Typically, they are in
      some static initialized (perhaps readonly) memory. Each
      polymorphic object will have a pointer to the appropriate
      table.

      Comment

      • Rolf Magnus

        #4
        Re: V Table

        Kittu wrote:
        [color=blue]
        > Where will be V Table stored?[/color]

        Why do you care, and what answer would you expect, other than "somewhere in
        memory"?

        Comment

        • Jeff Flinn

          #5
          Re: V Table


          "Rolf Magnus" <ramagnus@t-online.de> wrote in message
          news:coi2eo$cnm $04$1@news.t-online.com...[color=blue]
          > Kittu wrote:
          >[color=green]
          > > Where will be V Table stored?[/color]
          >
          > Why do you care, and what answer would you expect, other than "somewhere[/color]
          in[color=blue]
          > memory"?[/color]

          Because that was the homework assignment?

          Jeff F


          Comment

          Working...