On 18.11.2018 1:26, Adam D. Ruppe wrote:
That's because the compiler passes it a hidden pointer to refer to the
context outside. The compiler could perhaps be smarter about it, and see
if those methods actually refer to the context, but it seems to simply
say if the method is there, it might refer to it and it adds the context
pointer (note that S.sizeof increases too) and a magic constructor to
set it.
Well, if "this" means hidden pointer then it never should be returned by
AllMembers at all, isn't it?