Some things to fix

Sjoerd van Leent svanleent at gmail.com
Fri Jul 31 01:57:23 PDT 2009


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.



More information about the Digitalmars-d mailing list