Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.tele2net.at!news.panservice.it!feed.xsnews.nl!border01.ams.xsnews.nl!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <60636642.clnVRmuXiz@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Tue, 11 Mar 2014 18:01:29 +0100 User-Agent: KNode/4.11.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <868d8999-f1b7-49bb-a33c-4e76b00ecafa@googlegroups.com> <531f2b05$0$6660$9b4e6d93@newsspool2.arcor-online.net> MIME-Version: 1.0 Lines: 43 NNTP-Posting-Date: 11 Mar 2014 18:01:32 CET NNTP-Posting-Host: c10d2d54.newsspool1.arcor-online.net X-Trace: DXC=daWb4Gl<;L?kUFX=Y?aLP;ic==]BZ:af>4Fo<]lROoR1nkgeX?EC@@0g^WmZX^PGj3DZm8W4\YJN X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:23529 Christoph Michael Becker wrote: > jonas.thornvall@gmail.com wrote: >> Well i sure did, this for loop code will store values of index i at >> their respective negative indexes. Just run it. There is no problem >> to store and reach values at negative indexes but i want to store >> objects not values. >> >> > > As Evertjan has already pointed out, … being wrong on several accounts … > there are no negative array indexes, but the "index" is rather the name of > a property of the array object in this case. In *all* cases. It is only that with Array instances some property names, the array indexes, are special. > I suggest to use ECMAScript Arrays the way they're meant to be used, and > use indexes from 0 to n, and scale them as appropriate. As long as the “length” property is not used directly, it can be useful to have an *Array* instance with user-defined properties whose names are string representations of negative numbers, positive numbers greater than 2³² − 1, and non-integers. > BTW: please try to avoid Google Groups for posting if possible; at least > avoid overlong lines when posting via GG. ACK. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not Cc: me. / Bitte keine Kopien per E-Mail.