appeal again: discard the syntax of private:, public: static: private{}, public{}, static{}.

Derek Parnell derek at psych.ward
Fri Jun 23 18:22:49 PDT 2006


On Sat, 24 Jun 2006 10:22:00 +1000, Boris Wang <nano.kago at hotmail.com>  
wrote:

> And this is what ?
>
>>
>>       // six pages
>>      ...
>>
>>        int func3(...)
>>        {
>>        }
>>        int func4(...)
>>        {
>>        }
>>        int func5(...)
>>        {
>>        }
>>        int func6(...)
>>        {
>>        }
>>        int func7(...)
>>        {
>>        }
>>        a_type var2;
>>     }
>>     int func2(...)
>>     {
>>     }
>>     a_type var4;
>>     int func5(...)
>>     {
>>     }
>> }

Excellent, that is what it is. To find out whether it is  
public/private/static/version/debug effected, place your cursor on the  
final "}" and press ctrl-[ to jump to the matching brace. This assumes you  
are using Crimson Editor of course ;-)

The point is, writing organised and predicatable code is less costly in  
the long run. We also have access to tools (i.e good editors) that can  
help us.

-- 
Derek Parnell
Melbourne, Australia



More information about the Digitalmars-d mailing list