Class Order Style
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Feb 20 05:50:26 PST 2017
Jolly James wrote:
> How to sort the members of a class?
> like:
>>1. properties
>>then
>>2. private 3. methods
>>4. ctors
> ... and so on. are there any recommendations?
> And what is better?
just add ddoc documentation to 'em, and then it doesn't matter in which
order they are declared: people will generate documentation to find out
how to use your code. ;-)
More information about the Digitalmars-d-learn
mailing list