On Mon, 27 Oct 2014 22:17:24 +0000
bitwise via Digitalmars-d <digitalmars-d@puremagic.com> wrote:

> I have been trying to build a reflection system over the last few
> weeks, and noticed different incarnations of this problem several
> times:
> 
> &(__error).instanceMethod
this means that something gone wrong in the process. '(__error)' is the
"pseudotype" for failed CTFE/instantiation.

> This error seems like it may be related some how:
> 
> enum index = __traits(getVirtualIndex, TestClass.instanceMethod);
> enum p = TestClass.classinfo.vtbl[index];
> 
> The above code will produce this error:
> Error: typeid(main.TestClass).vtbl is not yet implemented at
> compile time
> 
> but if this is the problem, shouldn't Both of the test cases fail?
why? everything is ok here. you can get method index in compile-time,
but there is no built VMT in compile time. what do you want to achieve
with second enum?

Attachment: signature.asc
Description: PGP signature

Reply via email to