[Issue 3964] New: Hello World, Reloaded example on 1.0 page has writeln

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 15 08:52:59 PDT 2010


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

           Summary: Hello World, Reloaded example on 1.0 page has writeln
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: nobody at puremagic.com
        ReportedBy: baseball.mjp at gmail.com


--- Comment #0 from Michael P <baseball.mjp at gmail.com> 2010-03-15 08:52:58 PDT ---
Thought I read this before, but couldn't find anything when searching.

On http://digitalmars.com/d/1.0/index.html, the example uses the function
'writeln' which does not exist in D1.


// Object Oriented Programming
auto cl = new CmdLin(argc, argv);
// Improved typesafe printf
writeln(cl.argnum, cl.suffix, " arg: ", cl.argv);
// Automatic or explicit memory management
delete cl;

Change writeln to writefln makes it work just fine.

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


More information about the Digitalmars-d-bugs mailing list