Idea to verify virtual/final methods

Namespace rswhite4 at googlemail.com
Tue Jun 4 09:43:40 PDT 2013


On Tuesday, 4 June 2013 at 13:44:49 UTC, Jacob Carlborg wrote:
> On 2013-06-04 15:22, Namespace wrote:
>> Awesome! But I miss the filename and the line number where the 
>> error
>> happened.
>
> template RTInfo(T, string mod = __MODULE__, string file = 
> __FILE__, size_t line = __LINE__)
> {
>     enum RTInfo = checkVirtual!(T, mod, file, line);
> }
>
> The above could work.

No chance without changing and rebuilding druntime?


More information about the Digitalmars-d mailing list