[Issue 11729] New: protected toString causes strange error message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 12 04:46:33 PST 2013


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 at puremagic.com
        ReportedBy: uplink.coder at googlemail.com


--- Comment #0 from uplink.coder at 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: -------


More information about the Digitalmars-d-bugs mailing list