D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3964 - Hello World, Reloaded example on 1.0 page has writeln
Summary: Hello World, Reloaded example on 1.0 page has writeln
Status: RESOLVED WONTFIX
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D1 (retired)
Hardware: All All
: P2 trivial
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-15 08:52 UTC by Michael Parrott
Modified: 2015-12-16 02:47 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Michael Parrott 2010-03-15 08:52:58 UTC
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.
Comment 1 Michael Parrott 2010-07-01 16:43:20 UTC
Is there any reason why this hasn't been fixed? It only requires a 1 character addition...
Comment 2 nfxjfg 2010-07-01 19:01:37 UTC
Michael P, it somebody happens that none of the D developers care about some bug.
Just forget it.