Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Can somebody explain this to me Date: Wed, 28 Jan 2015 18:14:48 +0100 Organization: PointedEars Software (PES) Lines: 33 Message-ID: <17352067.mZ80Cge9sB@PointedEars.de> References: <1590597.KOVAYohEvS@PointedEars.de> <1761561.NWXpXnK3hu@PointedEars.de> <4ikqaa9iqmr7jd2qtiqhbsv47frcvjq12t@4ax.com> <1484912.4aj6z3n5JQ@PointedEars.de> <7dd0badq67nid10hcrgs0l2f5r7td12jbo@4ax.com> <92a91101-5f3d-4d1a-b76f-59df633d9642@googlegroups.com> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1422465331 6055 eJwFwYERACEIA7CV7EsrjgNy3X+ET7gFvROigqZfRXr8lQt3Q7o5C24dmGhwOtmeleI4+gcq2xGV (28 Jan 2015 17:15:31 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Wed, 28 Jan 2015 17:15:31 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwNycEBBCEIA8CWBCRKOYQz/ZewN9/JgGHORmKnUs+51ppLVPxSvPetA7f+70hR/lCnS3QOtxVoTUZpukL9AV0VFlU= Cancel-Lock: sha1:1Pn6zAm2PcjtOQIS4aYTTCFR518= X-NNTP-Posting-Host: eJwFwQkBACAIA8BK8g2MM1T6R/AuDIKTjoDHxByjQ0XbeWULam0ylMyj81KQXlhW7T237X0QyhDy Xref: csiph.com comp.lang.javascript:26736 Joao Rodrigues wrote: > The term 'class' is one of the future reserved words in ECMAScript > Language Specification [1]. And the only 'class' available in ECMAScript > is an invisible internal property called [[Class]] of the String type > domain, common to all objects [2]. s/invisible/abstract, directly inaccessible/ As you quoted below, the “[[Class]]” property is a *Specification mechanism* only, used to describe steps and execution paths in Specification algorithms. It does not need to be implemented under that name at all; it is sufficient that the implementation behaves as specified in the algorithm in order to be conforming. Property *visibility* is a *different* concept in OOP. With regard to ECMAScript, it is only supported by implementations of the abandoned Edition 4 working draft, in particular by Microsoft JScript .NET and Macromedia/Adobe ActionScript 2.0+: > David Hermann […]: "[…] The value of [[Class]] is just a simple tag: > Array objects (created by the Array constructor or the [] syntax) are > stamped with the [[Class]] value "Array", functions are stamped with the > [[Class]] value "Function", and so on." -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.