Idea to verify virtual/final methods

Jacob Carlborg doob at me.com
Tue Jun 4 06:44:49 PDT 2013


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.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list