Re: virtual function call issue

Tech-Archive recommends: Speed Up your PC by fixing your registry



"George" <George@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F4B934BF-790B-4F15-A5F6-F3F02E003B9D@xxxxxxxxxxxxx
The different assembly code when we call through z and z1 in below
sample is,

- we know the type of z, so no need to access vtable to make function
call;
- we do not know the exact type for a pointer, so need to access
vtable to make function call.

Correct.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: Avoiding Overflow
    ... land, and it could be dangerous sitting under them as they fly ... overhead. ... -- RFC 1925 ...
    (microsoft.public.vc.language)
  • Re: Muliple framed webpage scroll position
    ... and it could be dangerous sitting under them as they fly ... overhead. ... -- RFC 1925 ... Prev by Date: ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: fatal error C1083: Cannot open include file
    ... land, and it could be dangerous sitting under them as they fly ... overhead. ... -- RFC 1925 ...
    (microsoft.public.vc.language)
  • Re: Printing to the printer
    ... and it could be dangerous sitting under them as they fly ... overhead. ... -- RFC 1925 ... Prev by Date: ...
    (microsoft.public.vc.language)
  • Re: IE Sychost.exe.Application Error
    ... land, and it could be dangerous sitting under them as they fly ... overhead. ... -- RFC 1925 ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)