Phobos classes member declaration order

Alexander aldem+dmars at nk7.net
Fri May 13 13:10:49 PDT 2011


Is there any particular reason to declare class members in the middle of the class, *after* they are referenced many times? core.thread is an example.

This makes some difficulties to find where they are defined. Compiler doesn't care, but humans do :)

It would be so easy to search for "class X" and see all declarations instead of scrolling through pages of code looking for declarations, when search doesn't really helps - it find a lot of references first.

Or at least, if declaration would be before references, that would help a lot.

/Alexander


More information about the Digitalmars-d mailing list