Idea to verify virtual/final methods

bearophile bearophileHUGS at lycos.com
Tue Jun 4 04:13:46 PDT 2013


Jacob Carlborg:

>> Is it possible to also write:
>>
>> checkVirtual!myModuleName;
>>
>> And verify all the classes in a module?

Or something like:

checkVirtual!(__MODULE__);


> Not with this version. I tried that first but I couldn't get 
> __traits(allMembers) to work on a module. I think by overriding 
> RTInfo it will be more automatic.

If there are some things that don't give you enough static 
introspection to perform that, then it's worth adding that 
missing static introspection to D language.

Bye,
bearophile


More information about the Digitalmars-d mailing list