Summary: web example of BufferedFile has compile error
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites

--- Comment #0 from ZY Zhou <> 2011-03-09 02:21:29 PST ---

  Stream file = new BufferedFile("sample.txt");
  foreach(ulong n, string line; file) {
     stdout.writefln("line %d: %s",n,line);

Error: function (scope int delegate(ref cha
r[]) dg) is not callable using argument types (int delegate(ref ulong
0, ref string __applyArg1))
Error: cannot implicitly convert expression (__foreachbody1239) of ty
pe int delegate(ref ulong __applyArg0, ref string __applyArg1) to int
ef ulong n, ref wchar[] line)

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

Reply via email to