Path: csiph.com!aioe.org!news.mb-net.net!open-news-network.org!.POSTED.25.224.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Trying to create array of object literals Date: Wed, 18 Apr 2018 03:25:38 +0200 Organization: PointedEars Software (PES) Lines: 56 Message-ID: <5146764.DvuYhMxLoT@PointedEars.de> References: <2ea2803e-c39d-40e0-b8ed-136c3dc9b4e0@googlegroups.com> <3364120.8dbtfUO1ph@PointedEars.de> <4mv0ddt3bre9bbiofnvabnbamlp9jfj072@4ax.com> <15901681.8V3EAehsKz@PointedEars.de> <3dd0b784-9634-4047-b79b-a171d1e1d099@googlegroups.com> <6c46125d-480d-43af-86db-03bc5200c0bf@googlegroups.com> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit Injection-Info: gwaiyur.mb-net.net; posting-host="25.224.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch:178.197.224.25"; logging-data="11986"; mail-complaints-to="abuse@open-news-network.org" User-Agent: KNode/4.14.2 Cancel-Lock: sha1:MO0SiiEMT3rfbmQs7s0WpV0pY5c= X-User-ID: U2FsdGVkX19p4RSQZ8XdUG43Qcj9TTzZ0FVawIprANZr7OHxI6L+3Q== X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. John G Harris writes: >> And what the ES language is is one that does not have programmable >> pointers and does not have programmable references (for any reasonable ^^^^^^^^^^^^ >> definition of 'reference'). By that statement, John G Harris has solidly *refuted* their own ridiculous claim. Congratulations. ECMAScript is not an actual programming language in the sense that you can write computer programs in it. It is a standard for programming languages that requires implementation, and you can write computer programs in implementations of ECMAScript. When we speak for brevity of ECMAScript as if it were a programming language (instead of a standard for them), we actually implicitly mean *strict* *implementations* of ECMAScript. > »A Reference is a resolved name or property binding. Note the marked word. This is _not_ what “reference” means when talking about ECMAScript *implementations*. Instead, as the anti-socially address-munging John G Harris *knows*, but trollingly pretends not to know *every* *single* *time*, it means “reference” as in object-oriented programming languages in general, which is related to garbage collection. [For those reasons and others, I have John G Harris in my killfile; I respond to his baits only occasionally, so that he cannot confuse beginners with his half-wit nonsense.] After an object has been constructed, it can only be accessed by the program through a *reference* to it, by which we (reasonable people) simply mean *“a conceptual entity that refers to something”*. There can be multiple references (with the same value) referring to the same object. An object can be garbage-collected (after a potential destructor has been called to release resources used by the object¹): the memory reserved for its data can be “freed”, to be reservable again for other data/objects, if there are no more references to it, because then the program cannot access it anymore anyway. (This wording and similar ones can be found in every description of garbage collection.) > [tl;dr] _______ ¹ ECMAScript has no built-in concept of a destructor (yet). In ECMAScript implementations, a destructor to release resources has to be called explicitly, by the programmer. However, many public APIs usable with ECMAScript implementations are usually designed so that resources are automatically released, e.g. the handles for “File”s are closed. -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.