I/O related question, and ini parsing

bearophile bearophileHUGS at lycos.com
Fri Dec 6 08:56:28 PST 2013


Mineko:

> https://github.com/MinekoRox/Breaker-3D-Game-Engine

Notes:
- Usually in D imports are at the top (after module name and 
module ddoc).
- Perhaps io.getDir is better written an a switch on strings.
- I suggest to add the immutable/cost to every variable that 
doesn't need to mutate, including foreach loop variables. I also 
suggest to add pure/nothrow annotations where you can, and add 
pre/post conditions to functions and invariants to 
structs/classes where convenient (and unittests).

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list