Summary: wc example for D2 doesn't compile
           Product: D
           Version: 2.027
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2

Attempting to compile the example program given at results in the following:

irc.d(54): Error: constructor () does not match
parameter types (char[])
irc.d(54): Error: cannot implicitly convert expression (arg) of type char[] to
irc.d(54): Error: expected 3 function arguments, not 1

This appears to be because the ctor that accepts a filename wants a string, not
a char[], but the compiler is trying to match it to the ctor that takes a

Replacing all instances of char[] with string appears to fix the problem as
well as being idiomatic D2.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to