Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #28955

Re: Multidimensional arrays in javascript

Newsgroups comp.lang.javascript
Date 2015-12-03 10:06 -0800
References <cbd3e2fa-ab38-4650-a9f7-3c8b3edd204a@googlegroups.com> <XnsA56572C881A5eejj99@194.109.6.166> <cf32beb8-d323-49d8-954b-6fc1c2083bbd@googlegroups.com> <XnsA565BB1C74E9Beejj99@194.109.6.166>
Message-ID <2ce45b51-b85d-42c2-95cd-bbc74e0ecb89@googlegroups.com> (permalink)
Subject Re: Multidimensional arrays in javascript
From jonas.thornvall@gmail.com

Show all headers | View raw


Den torsdag 3 december 2015 kl. 18:23:45 UTC+1 skrev Evertjan.:
> jonas.thornvall@gmail.com wrote on 03 Dec 2015 in comp.lang.javascript:
> 
> > Den torsdag 3 december 2015 kl. 00:42:27 UTC+1 skrev Evertjan.:
> >> jonas.thornvall@gmail.com wrote on 02 Dec 2015 in comp.lang.javascript:
> >> > Is there any limit to depth of an multidimensional array in
> >> > javascript? 
> >> 
> >> Javascript has NO multidimensional arrays !!!
> >> 
> >> Which dos not mean you cannot put an array in a single element of an
> >> array, but that is beside the point:
> >> 
> >> Javascript has NO multidimensional arrays !!!
> 
> > Hello can those arrays linke to elements in a hierarchy array type be of
> > different data types? 
> 
> Arrays do not link to elements.

Of course they must how could it else be done an array may be a stack, but subobjects must be linked weither they are arrays or not?

How would it otherways work do you think the subgroup is splice into the array without index? Or does it create an object, it can not be because the object would have to allocate space it must be a link to a memory location just like a FAT link to a sector and track. But here it is a link to physical memory adress.

> 
> The individual elements of javascript arrays:
> - are empty [meaning nonexistant, usefully conserving memory]
> - hold a variable value
> - hold an object, could be an array

Yes and that object is a linked to a memory adress holding another stack? 

> > Example a byte array at first level where each element hold an integer
> > array? 
> 
> Javascript arrays are all the same,
> there are no "byte arrays" or "integer arrays".

That is not what the link from Stackoverflow tells me.

> There are no "levels" that is just your imagination.

Of course there are levels of linking just like a directory tree with depth.
 
> This is just like asking if a javascript string can have a letter "p" at
> the 21st letter location when the 17th location is empty.

??? i am not sure what you try say here, do you try to say that the index 17 isn't there until you put p into 21?
 
 
> Please Jonas, for your own sake, do not invent things that are not there!

What isn't there other told me there is no problem building treestructures storing objects in an hiearach using javascript arrays.
 
> There is a difference in what you do on a programming level,
> and what javscript has to offer as a programming language.

Well it seem like it offer what i want to use it for creating a tree structure reading in words char by char at each level.

But you seem to say it is not possible, you really not that clear what you try to forward, let to the mist and tell what can an can't be done.

Do you understand what i try to do?
 
> -- 
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Multidimensional arrays in javascript jonas.thornvall@gmail.com - 2015-12-02 14:31 -0800
  Re: Multidimensional arrays in javascript jonas.thornvall@gmail.com - 2015-12-02 14:47 -0800
  Re: Multidimensional arrays in javascript "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-02 14:50 -0800
  Re: Multidimensional arrays in javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-12-03 00:42 +0100
    Re: Multidimensional arrays in javascript jonas.thornvall@gmail.com - 2015-12-02 18:03 -0800
    Re: Multidimensional arrays in javascript jonas.thornvall@gmail.com - 2015-12-03 09:04 -0800
      Re: Multidimensional arrays in javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-12-03 18:23 +0100
        Re: Multidimensional arrays in javascript jonas.thornvall@gmail.com - 2015-12-03 09:48 -0800
          Re: Multidimensional arrays in javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-12-03 19:49 +0100
            Re: Multidimensional arrays in javascript jonas.thornvall@gmail.com - 2015-12-03 11:17 -0800
              Re: Multidimensional arrays in javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-12-03 20:26 +0100
                Re: Multidimensional arrays in javascript jonas.thornvall@gmail.com - 2015-12-03 11:32 -0800
                Re: Multidimensional arrays in javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-12-03 20:37 +0100
              Re: Multidimensional arrays in javascript John Harris <niam@jghnorth.org.uk.invalid> - 2015-12-04 10:38 +0000
                Re: Multidimensional arrays in javascript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-04 13:37 +0100
                Re: Multidimensional arrays in javascript John Harris <niam@jghnorth.org.uk.invalid> - 2015-12-04 16:14 +0000
                Re: Multidimensional arrays in javascript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-04 18:10 +0100
                Re: Multidimensional arrays in javascript Tim Streater <timstreater@greenbee.net> - 2015-12-04 18:52 +0000
                Re: Multidimensional arrays in javascript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-04 20:07 +0100
                Re: Multidimensional arrays in javascript John Harris <niam@jghnorth.org.uk.invalid> - 2015-12-06 14:47 +0000
                Re: Multidimensional arrays in javascript John Harris <niam@jghnorth.org.uk.invalid> - 2015-12-06 16:11 +0000
                Re: Multidimensional arrays in javascript Andrew Poulos <ap_prog@hotmail.com> - 2015-12-07 06:54 +1100
                Re: Multidimensional arrays in javascript "danca (Daniele Campagna)" <cyberdanny@tiscalinet.it> - 2015-12-06 22:43 +0100
                Re: Multidimensional arrays in javascript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-06 23:19 +0100
                Re: Multidimensional arrays in javascript John Harris <niam@jghnorth.org.uk.invalid> - 2015-12-08 11:16 +0000
                Re: Multidimensional arrays in javascript Aleksandro <aleksandro@gmx.com> - 2015-12-04 11:55 -0300
                Re: Multidimensional arrays in javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-12-04 17:26 +0100
                Re: Multidimensional arrays in javascript jonas.thornvall@gmail.com - 2015-12-04 09:23 -0800
            Re: Multidimensional arrays in javascript Stefan Weiss <krewecherl@gmail.com> - 2015-12-03 20:29 +0100
              Re: Multidimensional arrays in javascript Gene Wirchenko <genew@telus.net> - 2015-12-03 13:23 -0800
        Re: Multidimensional arrays in javascript jonas.thornvall@gmail.com - 2015-12-03 10:06 -0800
          Re: Multidimensional arrays in javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-12-03 20:21 +0100
        Re: Multidimensional arrays in javascript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-03 21:00 +0100
  Re: Multidimensional arrays in javascript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-12-02 16:50 -0800
    Re: Multidimensional arrays in javascript jonas.thornvall@gmail.com - 2015-12-03 07:10 -0800
      Re: Multidimensional arrays in javascript jonas.thornvall@gmail.com - 2015-12-03 07:23 -0800
    Re: Multidimensional arrays in javascript jonas.thornvall@gmail.com - 2015-12-03 07:15 -0800

csiph-web