On Sat, Aug 24, 2002 at 09:57:17PM -0400, Chris Dutton wrote:
> We are supposedly going to be able to set a class to be 
> "uninheritable".

Err, I believe the result of that discussion was that unihertiable classes
is a Bad Idea and very easy to work around using delegation. 

http:[EMAIL PROTECTED]/msg10599.html

Experience from Java's "final" shows it doesn't prevent anyone from
effectively inheriting, often gets used in the wrong places and it's an
exposed premature compiler optimization.

Worse, it often gets used in wholely the wrong places.  For example: In
Java, java.lang.String, java.lang.Math and java.net.URL are all final.  This
means you can't inherit from these basic classes that you'll probably want
to inherit from.  Why?  Somebody probably figured it would run a bit faster.


-- 

Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
Perl Quality Assurance      <[EMAIL PROTECTED]>         Kwalitee Is Job One
They had applied the blinders of steam-grilled hamburgers to my eyes.

Reply via email to