[Issue 1412] stringof shouldn't be shadowed by member func

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 11 18:59:25 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1412


davidl at 126.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




------- Comment #4 from davidl at 126.com  2008-05-11 20:59 -------
i will appreciate that a warning or a explicit override const keyword?

struct k
{
        override const char[] stringof() // for overloading the stringof
builtin prop,users have to use "override const" keyword explicitly? 
        {
                return "mystringof";
        }
}

or the compiler emits a warning will be nice also


-- 



More information about the Digitalmars-d-bugs mailing list