Covariant returns

Mark Mitchell mark at codesourcery.com
Wed Jul 5 16:49:57 UTC 2000


>>>>> "Jason" == Jason Merrill <jason at redhat.com> writes:

    >> There also need to be vcall offsets for all of the covariant
    >> returns.

    Jason> Why would we need anything that we wouldn't already need
    Jason> for functions without covariant returns?

I didn't mean to imply that -- just that we would have to treat
covariant returns just like ordinary functions.  The present language
didn't make that clear.

In other words, when we read the document we are meant to think of the
various covariant returns as different functions -- but that's not the
way an ordinary human would likely read it.  An ordinary human would
think that the overriding function is just one function, not N where N
is the number of covariant returns. :-)

--
Mark Mitchell                   mark at codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com




More information about the cxx-abi-dev mailing list