Some things to fix
Sergey Gromov
snake.scaly at gmail.com
Fri Jul 31 06:08:43 PDT 2009
Fri, 31 Jul 2009 04:57:23 -0400, Sjoerd van Leent wrote:
> Robert Fraser Wrote:
>
>> Ary Borenszweig wrote:
>>> 2. modifiers that don't make sense should be disallowed.
>>
>> There's been wars about this one. IMO, this is a good thing for writing
>> templated/generic code -- if a modifier only makes sense in one instance
>> of a template, all the others should not be marked as errors.
>>
>> I think _conflicting_ modifiers should be made an error, i.e. "public
>> private int x;".
>
> I disagree, what about:
>
> public
> {
> .
> .
> .
> private
> {
> }
> .
> .
> .
> }
>
> Perhaps a warning in obvious cases (public private) should be raised.
Even better:
public:
.
.
.
private:
.
.
.
More information about the Digitalmars-d
mailing list