overloading template functions it not always allowed

Steven Schveighoffer schveiguy at yahoo.com
Fri Dec 31 07:35:56 PST 2010


On Fri, 31 Dec 2010 10:11:02 -0500, bearophile <bearophileHUGS at lycos.com>  
wrote:

> Steven Schveighoffer:
>
>> so even though I feel this is a bug (it should be silently ignored),
>
> Generally silently ignoring attributes is exactly the opposite you want  
> from a modern compiler. See bug
> 3934.

In this case though, you are asking for a function which is already final  
to be final.  The compiler can safely ignore the request because the  
request is already satisfied.

If you asked for a virtual function to be final, and the compiler ignored  
the request, I'd say it was bad.

-Steve


More information about the Digitalmars-d-bugs mailing list