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


Groups > comp.lang.javascript > #28958

Re: Multidimensional arrays in javascript

Newsgroups comp.lang.javascript
Subject Re: Multidimensional arrays in javascript
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
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> <2ce45b51-b85d-42c2-95cd-bbc74e0ecb89@googlegroups.com>
Date 2015-12-03 20:21 +0100
Message-ID <XnsA565CF2A722D9eejj99@194.109.6.166> (permalink)

Show all headers | View raw


jonas.thornvall@gmail.com wrote on 03 Dec 2015 in comp.lang.javascript:

> 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
>> > o 
> f
>> > different data types? 
>> 
>> Arrays do not link to elements.

You don't seem to know what a stack is.

A stack is a lifo memory, 
a heap where you put things on and take the newest one of again. 

> 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? 

Given the right counters you can use an array as a stack.
But an array IS NOT a stack.

"how else?" is not an argument, just a lack of imagination.

You can define numerical values as pointers to a array element,
but that is just programming.


> 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. 

You are mixing software implementation with programming.

You can use an array with a letter in each element as a string,
but a javascript array is not a string.


>> 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? 

Another "array", javascript has no "stacks". 

And you are wrong, there is no object that is linkes to an array, 
an array is a specialized type of object.
 
>> > 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.

Oh, well, I sullose you also see the bible as proven truth?

>> There are no "levels" that is just your imagination.
> 
> Of course there are levels of linking just like a directory tree with
> depth. 

No, there are not.

Your "of course" yous shows you are not able to explain and in itself hints 
at it being a false argument.

In software you can define a value as a link to an element in another array,
like I kan define "x23" to mean "Jonas-Thornval", but that is just your 
programming.

>> 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,

It shows.

> do you try to say that the
> index 17 isn't there until you put p into 21? 

No, I say that a javascript string CANNOT have an empty position.

That a javascript string has indexes is just not true,
unles you define is so by your software.

And you cannot "put" a letter in an existing javascript string,
as it is not an array. You can make a software black box making is seemingly 
so, but the amount of cpu-time it takes will betray you.

>> 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. 

You can do what you damn well like with software,
but understanding what javascript does and does not
will certainly help with the programming and the debugging.

>> 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. 

You can do what you damn well like with software,
but understanding what javascript does and does not
will certainly help with the programming and the debugging.
 
> 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. 

No, many things can be done by programming, 
you can make a javascript array ACT like a string, 
but you cannot make that array BE a javascript string.

So if you say "javascript HAS multilevel arrays", you are WRONG.

> Do you understand what i try to do?

Certainly, you are trying to make an ass of yourself.
You are making claims that javascript IS what it ISN'T,
and DOES wat it DOESN'T DO.

If you use these false assumptions, 
your programmes will be needlessly badly written, 
and if thay work at all, 
they will take far more cpu-time than necessary,
and the debugging will be difficult if not near impossible.

-- 
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