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

           Summary: Documentation states string literals can implicitly
                    convert to char*
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: websites
        AssignedTo: nob...@puremagic.com
        ReportedBy: simen.end...@pandavre.com


--- Comment #0 from simendsjo <simen.end...@pandavre.com> 2011-04-08 10:30:54 
PDT ---
http://digitalmars.com/d/2.0/arrays.html says
(...), and a string literal can be implicitly cast to a char*

char* a = "a"; // cannot implicitly convert expression "a" of type string to
char*
char* b = cast(char*)"a"; // ok
const(char)* c = "a"; // ok

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

Reply via email to