final forbidden with value template parameters?

2009-01-03 Thread Nicolas Sicard
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)

Re: final forbidden with value template parameters?

2009-01-03 Thread Jarrett Billingsley
On Sat, Jan 3, 2009 at 1:26 PM, Nicolas Sicard 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 rela

Re: final forbidden with value template parameters?

2009-01-03 Thread Denis Koroskin
On Sat, 03 Jan 2009 21:39:35 +0300, Jarrett Billingsley wrote: On Sat, Jan 3, 2009 at 1:26 PM, Nicolas Sicard 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?