www.digitalmars.com         C & C++   DMDScript  

D - bug: final

reply "Carlos Santander B." <carlos8294 msn.com> writes:
What's the purpose of 'final' in D?
This code compiles just fine:
final class A {}
class B:A { }
void main() {
 B b=new B();
}

-------------------------
Carlos Santander


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 2003-08-19
Aug 22 2003
parent "Walter" <walter digitalmars.com> writes:
Looks like a compiler bug.

"Carlos Santander B." <carlos8294 msn.com> wrote in message
news:bi65mo$2a9n$1 digitaldaemon.com...
 What's the purpose of 'final' in D?
 This code compiles just fine:
 final class A {}
 class B:A { }
 void main() {
  B b=new B();
 }

 -------------------------
 Carlos Santander


 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.512 / Virus Database: 309 - Release Date: 2003-08-19
Aug 23 2003