On Saturday, 7 December 2013 at 12:23:38 UTC, nazriel wrote:
imports are private by default.

Also I noticed few overlaping private declarations, for example here:
https://github.com/MinekoRox/Breaker-3D-Game-Engine/blob/master/src/breaker/utility/belt.d#L54

Sorry for the double post, this just occured to me, and it'll keep me from getting lectured about scopes and imports. :P

On Friday, 6 December 2013 at 17:32:24 UTC, Dicebot wrote:
On Friday, 6 December 2013 at 16:56:29 UTC, bearophile wrote:
Mineko:

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

Notes:
- Usually in D imports are at the top (after module name and module ddoc).

I think it is a bad practice that should be discouraged. Moving as much imports as possible into local scope has lot of practical benefits, primarily maintenance and compilation times.

OP still has them global though, just in weird place, that is unusual for sure :)

I'll probably just do that, actually, as I like having benefits.

Reply via email to