final forbidden with value template parameters?

Nicolas Sicard dransic at free.fr
Sat Jan 3 10:26:28 PST 2009


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)



More information about the Digitalmars-d mailing list