Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: array-like objects Date: Sun, 03 Jan 2016 16:59:02 +0100 Organization: PointedEars Software (PES) Lines: 49 Message-ID: <15615987.a6MfTLryX4@PointedEars.de> References: <39241641.QMrUfM43MS@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1451836743 24546 eJwFwQkBwCAMA0BLBZJ0k0M//xK449FSOkSBwwmAG2fVjXJgep0csXN/4b9Pebch7BqlHjwgnBFi (3 Jan 2016 15:59:03 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sun, 3 Jan 2016 15:59:03 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwNyMEBwCAIA8CVoBiC46Al+4/Q3vMQ6Xm5ErkgyO11Ne+Vzu5ig4iwVtSMXvgc/j8+s8yCw1ZGP6UqbsMHeIsWBA== Cancel-Lock: sha1:0MXAgvjWYEKenFnyVscZNV6mKk0= X-NNTP-Posting-Host: eJwFwQEBACAIA7BKoudKHETeP4KbLxprg064XLf14pkZCsi4W2enbERXQYdYi3ckMYe6pz4tphGS Xref: csiph.com comp.lang.javascript:29120 John Harris wrote: > On Sat, 02 Jan 2016 20:48:26 +0100, Thomas 'PointedEars' Lahn > wrote: >>Joao Rodrigues wrote: > >>> As noted above, "a" is an object, not an array. >> >>“a” is not an object, it is an identifier. > > > There is something wrong with this assertion. Suppose someone says > "Please talk to Thomas." > Do you expect to hear > "That's nonsense! Thomas is a name, not something you can talk to." Assuming non-strict mode, consider this: b = a; If “a” "is an object", what is “b” then? And before you reply, consider this: /* undefined */ a.foo b.foo = 42; /* 42 */ a.foo > (To be incredibly precise, Thomas is not even a name; it's a computer > representation of a name). Incorrect, hasty generalization. A computer is not required for “Thomas” to be a name. > Equally, when the compiler sees > a = 5; > does it say > "Nonsense; 'a' is an identifier. You can't change it." Once again you are missing the point. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.