2008/10/24 James Jeffery <[EMAIL PROTECTED]>: > The language itself is NOT object-orientated, its proto-type based. It can > be used in an OOP fashion, but this is not true Object Orientation as it is > in languages such as C++.
Two serious problems with this statement: First, the prototype system is in fact one of several ways of implementing inheritance in OOP languages. Second, you're assuming C++ is object oriented. It's one of several languages that is known to be OOP by programmers while in actuality it's core is not OOP. Sure, it's possible to use C++ for object oriented programming, but C++ allows doing things that actually break object orientation. You can't do that in more OOP languages, for example JavaScript. C++ and Java are known as object oriented languages, but they are not the ultimate in object orientation. There are plenty of languages that are more object oriented. But they use classical inheritance, and because JavaScript does not some people have got into their heads that Classical inheritance == OOP which means JavaScritp != OOP. But that's a misconception. -- David "liorean" Andersson ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************