D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 11710 - dmd samples are legacy
Summary: dmd samples are legacy
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-07 10:28 UTC by SHOO
Modified: 2024-12-13 18:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description SHOO 2013-12-07 10:28:53 UTC
Because update is delayed for the accompanying sample of dmd, it shows very old-fashioned codes.
Today, I saw the example that held a bad impression for the whole D language to see this sample codes. It is to be very regretted that D language itself was judged from such a trivial things.
To avoid this, it is necessary to discard samples or to make better codes.
I hope the sample codes appropriate to say "That's the code of the D Programming Language!"

Specifically, I think that improvement is necessary in the following points:

* Don't depend on the module of the C language as much as possible.
* Signature of the main function; `void main(string[] args)`
* To use foreach for loops.
* Don't use deprecated modules.
* Use inferences / Use enum for constant numbers / Use scope guard statements / etc.
Comment 1 dlangBugzillaToGithub 2024-12-13 18:15:01 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/17631

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB