www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11729] New: protected toString causes strange error message

https://d.puremagic.com/issues/show_bug.cgi?id=11729

           Summary: protected toString causes strange error message
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: uplink.coder googlemail.com


--- Comment #0 from uplink.coder googlemail.com 2013-12-12 04:46:32 PST ---
Hello,

if I declare a toString function protected, the compiler spills lots of error
messages regardig Writers and Appenders.
I find this very unhelpful.
maybe another Template Contraint 
something along the lines of
if (hasToString!T && isCallable!T.toString)
would be abit clearer.

Cheers 
Uplink_Coder

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 12 2013