`this' pointer vs. return pointer
Mark Mitchell
mark at codesourcery.com
Tue Jan 23 18:15:22 UTC 2001
Does anyone remember what the resolution was on wehther the `this'
pointer comes before, or after, the pointer to structures returned by
value?
I don't think the document actually *says* at present.
I think the buffer pointer should come first, and the `this' pointer
should come afterwards.
This makes sense because then the rule is:
- As a result of this language being C++, you add a `this' pointer.
- In your back-end, you notice that you've got a return by value,
so you add another parameter.
Doing anything else is going to be next to impossible in GCC, I
suspect.
Thoughts?
--
Mark Mitchell mark at codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the cxx-abi-dev
mailing list