final forbidden with value template parameters?
Jarrett Billingsley
jarrett.billingsley at gmail.com
Sat Jan 3 10:39:35 PST 2009
On Sat, Jan 3, 2009 at 1:26 PM, Nicolas Sicard <dransic at free.fr> wrote:
> Hi
>
> module main;
> class Foo(string s) {}
> final class Bar(string s) {} // Error
>
> The compiler says:
> variable main.s final cannot be applied to variable
>
> Why is this forbidden?
>
> Nicolas
> (DMD 2.022 - Linux)
>
It might be related to this:
http://d.puremagic.com/issues/show_bug.cgi?id=1481
But without a full example - where you're instantiating the template -
I can't say for sure.
More information about the Digitalmars-d
mailing list