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


Groups > comp.lang.javascript > #35140 > unrolled thread

Output not defined

Started byJonas Thörnvall <jonas.thornvall@gmail.com>
First post2018-06-01 00:10 -0700
Last post2018-06-01 10:49 -0700
Articles 20 on this page of 29 — 6 participants

Back to article view | Back to comp.lang.javascript


Contents

  Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-01 00:10 -0700
    Re: Output not defined "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-06-01 12:06 +0200
      Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-01 03:33 -0700
        Re: Output not defined "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-06-01 12:45 +0200
          Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-01 03:49 -0700
            Re: Output not defined "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-06-01 12:57 +0200
            Re: Output not defined Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-06-01 17:54 +0100
              Re: Output not defined Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-06-01 19:10 +0200
              Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-01 10:53 -0700
              Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-01 13:24 -0700
                Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 07:42 -0700
                  Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 07:57 -0700
                    Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 07:59 -0700
                  Re: Output not defined "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-06-02 18:05 +0200
                    Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 09:19 -0700
                    Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 09:28 -0700
                      Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 09:36 -0700
                        Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 09:49 -0700
                          Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 11:06 -0700
                          Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 11:18 -0700
                    Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-02 09:43 -0700
                      Re: Output not defined "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-06-02 22:44 +0200
                        Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-03 04:36 -0700
                        Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-03 04:53 -0700
                          Re: Output not defined John G Harris <niam@jghnorth.org.uk.invalid> - 2018-06-03 15:06 +0100
                            Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-03 11:01 -0700
                            Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-03 11:09 -0700
    Re: Output not defined Jake Jarvis <pig_in_shoes@yahoo.com> - 2018-06-01 15:03 +0200
      Re: Output not defined Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-06-01 10:49 -0700

Page 1 of 2  [1] 2  Next page →


#35140 — Output not defined

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-06-01 00:10 -0700
SubjectOutput not defined
Message-ID<d47e4fde-edba-4108-913c-f5902b538935@googlegroups.com>
I've looked upon this for a week or two, and i just can't figure out why output is not defined. Maybe it is because it works without problem when running browser in XP that make me confused.

https://3d16zci4vuzyxt8hxvovrg-on.drv.tw/Website/midi.html

Any help or even suggestion would be greatly appreciated.

[toc] | [next] | [standalone]


#35142

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2018-06-01 12:06 +0200
Message-ID<XnsA8F47B210D5E6eejj99@194.109.6.166>
In reply to#35140
<jonas.thornvall@gmail.com> wrote on 01 Jun 2018 in comp.lang.javascript: 

> I've looked upon this for a week or two, and i just can't figure out why
> output is not defined. Maybe it is because it works without problem when
> running browser in XP that make me confused. 

WHY! it is not defined, is, because it is not defined.

So go back WHERE! you defined it.

And start DEBUGGING.

============

For instance, you could ad another variable in the same scope:

var output;
output = ...; // Your defining definition
var debugVariable;
debugVariable = 27;

....

alert( debugVariable ); // inserted debugging line
// line where output is needed and errors out.

=============

> https://3d16zci4vuzyxt8hxvovrg-on.drv.tw/Website/midi.html

No, I am not going to do your work,
better, imho, stop asking us for debugging for you.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#35144

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-06-01 03:33 -0700
Message-ID<d2efe184-3334-47d6-84a1-f92291819f2b@googlegroups.com>
In reply to#35142
Den fredag 1 juni 2018 kl. 12:06:36 UTC+2 skrev Evertjan.:
> <jonas.thornvall@gmail.com> wrote on 01 Jun 2018 in comp.lang.javascript: 
> 
> > I've looked upon this for a week or two, and i just can't figure out why
> > output is not defined. Maybe it is because it works without problem when
> > running browser in XP that make me confused. 
> 
> WHY! it is not defined, is, because it is not defined.
> 
> So go back WHERE! you defined it.
> 
> And start DEBUGGING.
> 
> ============
> 
> For instance, you could ad another variable in the same scope:
> 
> var output;
> output = ...; // Your defining definition
> var debugVariable;
> debugVariable = 27;
> 
> ....
> 
> alert( debugVariable ); // inserted debugging line
> // line where output is needed and errors out.
> 
> =============
> 
> > https://3d16zci4vuzyxt8hxvovrg-on.drv.tw/Website/midi.html
> 
> No, I am not going to do your work,
> better, imho, stop asking us for debugging for you.
> 
> -- 
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)

Well i added var output; in main as global, i had it before it does not matter?

Take a look it is there, how could it not be defined.

[toc] | [prev] | [next] | [standalone]


#35146

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2018-06-01 12:45 +0200
Message-ID<XnsA8F481BFF2A81eejj99@194.109.6.166>
In reply to#35144
<jonas.thornvall@gmail.com> wrote on 01
Jun 2018 in comp.lang.javascript: 

> Den fredag 1 juni 2018 kl. 12:06:36 UTC+2 skrev Evertjan.:
>> <jonas.thornvall@gmail.com> wrote on 01 Jun 2018 in
>> comp.lang.javascript: 
>> 
>> > I've looked upon this for a week or two, and i just can't figure out
>> > why output is not defined. Maybe it is because it works without
>> > problem when running browser in XP that make me confused. 
>> 
>> WHY! it is not defined, is, because it is not defined.
>> 
>> So go back WHERE! you defined it.
>> 
>> And start DEBUGGING.
>> 
>> ============
>> 
>> For instance, you could ad another variable in the same scope:
>> 
>> var output;
>> output = ...; // Your defining definition
>> var debugVariable;
>> debugVariable = 27;
>> 
>> ....
>> 
>> alert( debugVariable ); // inserted debugging line
>> // line where output is needed and errors out.
>> 
>> =============
>> 
>> > https://3d16zci4vuzyxt8hxvovrg-on.drv.tw/Website/midi.html
>> 
>> No, I am not going to do your work,
>> better, imho, stop asking us for debugging for you.
>> 
>> -- 
>> Evertjan.
>> The Netherlands.
>> (Please change the x'es to dots in my emailaddress)
> 
> Well i added var output; in main as global, i had it before it does not
> matter? 

Again, you are assuming.

Debugging is assuming your assumpions do not work out,

var output; does not define any content!!!!

> Take a look

No!

> it is there, how could it not be defined.

'how could it not be defined'???

So you know why it is not defined?


-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#35147

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-06-01 03:49 -0700
Message-ID<0f701b52-56fa-4318-b045-06682c46a6a9@googlegroups.com>
In reply to#35146
Den fredag 1 juni 2018 kl. 12:45:17 UTC+2 skrev Evertjan.:
> <jonas.thornvall@gmail.com> wrote on 01
> Jun 2018 in comp.lang.javascript: 
> 
> > Den fredag 1 juni 2018 kl. 12:06:36 UTC+2 skrev Evertjan.:
> >> <jonas.thornvall@gmail.com> wrote on 01 Jun 2018 in
> >> comp.lang.javascript: 
> >> 
> >> > I've looked upon this for a week or two, and i just can't figure out
> >> > why output is not defined. Maybe it is because it works without
> >> > problem when running browser in XP that make me confused. 
> >> 
> >> WHY! it is not defined, is, because it is not defined.
> >> 
> >> So go back WHERE! you defined it.
> >> 
> >> And start DEBUGGING.
> >> 
> >> ============
> >> 
> >> For instance, you could ad another variable in the same scope:
> >> 
> >> var output;
> >> output = ...; // Your defining definition
> >> var debugVariable;
> >> debugVariable = 27;
> >> 
> >> ....
> >> 
> >> alert( debugVariable ); // inserted debugging line
> >> // line where output is needed and errors out.
> >> 
> >> =============
> >> 
> >> > https://3d16zci4vuzyxt8hxvovrg-on.drv.tw/Website/midi.html
> >> 
> >> No, I am not going to do your work,
> >> better, imho, stop asking us for debugging for you.
> >> 
> >> -- 
> >> Evertjan.
> >> The Netherlands.
> >> (Please change the x'es to dots in my emailaddress)
> > 
> > Well i added var output; in main as global, i had it before it does not
> > matter? 
> 
> Again, you are assuming.
> 
> Debugging is assuming your assumpions do not work out,
> 
> var output; does not define any content!!!!
> 
> > Take a look
> 
> No!
> 
> > it is there, how could it not be defined.
> 
> 'how could it not be defined'???
> 
> So you know why it is not defined?
> 
> 
> -- 
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)

No i thought if i put var output; in main as global, how could it not be defined further down the chain, because it says undefined.

[toc] | [prev] | [next] | [standalone]


#35148

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2018-06-01 12:57 +0200
Message-ID<XnsA8F483E268FC2eejj99@194.109.6.166>
In reply to#35147
=?UTF-8?Q?Jonas_Th=C3=B6rnvall?= <jonas.thornvall@gmail.com> wrote on 01
Jun 2018 in comp.lang.javascript: 

>> > Take a look
>> 
>> No!
>> 
>> > it is there, how could it not be defined.
>> 
>> 'how could it not be defined'???
>> 
>> So you know why it is not defined?
>> 
> 
> No i thought if i put var output; in main as global, how could it not be
> defined further down the chain, because it says undefined. 

That's what debugging is about, 
stop assuming theorizing,
search for where you went wrong.

insert every other line:

if (typeof output == 'undefined') console.log('undefined');


-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#35151

FromBen Bacarisse <ben.usenet@bsb.me.uk>
Date2018-06-01 17:54 +0100
Message-ID<87bmcuwiqe.fsf@bsb.me.uk>
In reply to#35147
Jonas Thörnvall <jonas.thornvall@gmail.com> writes:

> No i thought if i put var output; in main as global, how could it not
> be defined further down the chain, because it says undefined.

You may be confusing output having the value undefined, and the concept
of a name having no binding.  When a name can't be resolved (maybe
because the programmer forgot to write "var output;") a ReferenceError
is raised.  When a variable name *can* be resolved but no value has been
assigned to it (such as when you write "var output;"), the variable will
have the undefined value.  This is the sole value of the Undefined
type.

-- 
Ben.

[toc] | [prev] | [next] | [standalone]


#35152

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2018-06-01 19:10 +0200
Message-ID<2024553.5UXlKB6UDy@PointedEars.de>
In reply to#35151
Ben Bacarisse wrote:

> Jonas Thörnvall <jonas.thornvall@gmail.com> writes:
>> No i thought if i put var output; in main as global, how could it not
>> be defined further down the chain, because it says undefined.
> 
> You may be confusing output having the value undefined, and the concept
> of a name having no binding.  When a name can't be resolved (maybe
> because the programmer forgot to write "var output;") a ReferenceError
> is raised. […]

Only either on *read* access or in *strict* mode.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#35154

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-06-01 10:53 -0700
Message-ID<3b67a4b9-a90f-4d9a-b81d-1ab1d5dfe0cd@googlegroups.com>
In reply to#35151
Den fredag 1 juni 2018 kl. 18:54:10 UTC+2 skrev Ben Bacarisse:
> Jonas Thörnvall <jonas.thornvall@gmail.com> writes:
> 
> > No i thought if i put var output; in main as global, how could it not
> > be defined further down the chain, because it says undefined.
> 
> You may be confusing output having the value undefined, and the concept
> of a name having no binding.  When a name can't be resolved (maybe
> because the programmer forgot to write "var output;") a ReferenceError
> is raised.  When a variable name *can* be resolved but no value has been
> assigned to it (such as when you write "var output;"), the variable will
> have the undefined value.  This is the sole value of the Undefined
> type.
> 
> -- 
> Ben.

Well that is the problem Ben i know there is a port at the index because it is already in the list? Outportindex is zero and there is two ports read in so how can it be undefined?

function selectPorts(){
   portout = mid.outputs.values();
   portin = mid.inputs.values();
   for (output = portout.next(); output && !output.done; output = portout.next()) {
       var deviceOut = output.value.name;
       //console.log(deviceOut);
       var optout = document.createElement("option");
       optout.text = deviceOut;
       document.getElementById("out_portsel").add(optout);
   }

   for (input = portin.next(); input && !input.done; input = portin.next()) {
           var deviceIn = input.value.name;
           var optin = document.createElement("option");
           optin.text = deviceIn;
           document.getElementById("in_portsel").add(optin);
  } 
}

function init(){
 clearInterval(InitTime);
 selectPorts();

[toc] | [prev] | [next] | [standalone]


#35155

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-06-01 13:24 -0700
Message-ID<196150be-47d0-4b42-9449-a22cb240fc08@googlegroups.com>
In reply to#35151
Den fredag 1 juni 2018 kl. 18:54:10 UTC+2 skrev Ben Bacarisse:
> Jonas Thörnvall <jonas.thornvall@gmail.com> writes:
> 
> > No i thought if i put var output; in main as global, how could it not
> > be defined further down the chain, because it says undefined.
> 
> You may be confusing output having the value undefined, and the concept
> of a name having no binding.  When a name can't be resolved (maybe
> because the programmer forgot to write "var output;") a ReferenceError
> is raised.  When a variable name *can* be resolved but no value has been
> assigned to it (such as when you write "var output;"), the variable will
> have the undefined value.  This is the sole value of the Undefined
> type.
> 
> -- 
> Ben.

It is even weirder then that in XP the value is defined.

[toc] | [prev] | [next] | [standalone]


#35156

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-06-02 07:42 -0700
Message-ID<a9f03770-d46e-4c02-8061-c7067ec56343@googlegroups.com>
In reply to#35155
Den fredag 1 juni 2018 kl. 22:24:32 UTC+2 skrev Jonas Thörnvall:
> Den fredag 1 juni 2018 kl. 18:54:10 UTC+2 skrev Ben Bacarisse:
> > Jonas Thörnvall <jonas.thornvall@gmail.com> writes:
> > 
> > > No i thought if i put var output; in main as global, how could it not
> > > be defined further down the chain, because it says undefined.
> > 
> > You may be confusing output having the value undefined, and the concept
> > of a name having no binding.  When a name can't be resolved (maybe
> > because the programmer forgot to write "var output;") a ReferenceError
> > is raised.  When a variable name *can* be resolved but no value has been
> > assigned to it (such as when you write "var output;"), the variable will
> > have the undefined value.  This is the sole value of the Undefined
> > type.
> > 
> > -- 
> > Ben.
> 
> It is even weirder then that in XP the value is defined.

Have something changed in the API or is it just a fluke that it works in windows XP.
Because when i try to get ports in windows 10 they are undefined?


function success (midi) {
    mid=midi;
    inputs = mid.inputs.values();
    portout = mid.outputs.values();
    console.log("Undefined value?="+inputs[0]); //outputs undefined
    console.log("Undefined value?="+portout[0]);  //outputs undefined

[toc] | [prev] | [next] | [standalone]


#35157

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-06-02 07:57 -0700
Message-ID<33c1b481-96d6-4043-a9d2-1e2eb32ac155@googlegroups.com>
In reply to#35156
Den lördag 2 juni 2018 kl. 16:42:40 UTC+2 skrev Jonas Thörnvall:
> Den fredag 1 juni 2018 kl. 22:24:32 UTC+2 skrev Jonas Thörnvall:
> > Den fredag 1 juni 2018 kl. 18:54:10 UTC+2 skrev Ben Bacarisse:
> > > Jonas Thörnvall <jonas.thornvall@gmail.com> writes:
> > > 
> > > > No i thought if i put var output; in main as global, how could it not
> > > > be defined further down the chain, because it says undefined.
> > > 
> > > You may be confusing output having the value undefined, and the concept
> > > of a name having no binding.  When a name can't be resolved (maybe
> > > because the programmer forgot to write "var output;") a ReferenceError
> > > is raised.  When a variable name *can* be resolved but no value has been
> > > assigned to it (such as when you write "var output;"), the variable will
> > > have the undefined value.  This is the sole value of the Undefined
> > > type.
> > > 
> > > -- 
> > > Ben.
> > 
> > It is even weirder then that in XP the value is defined.
> 
> Have something changed in the API or is it just a fluke that it works in windows XP.
> Because when i try to get ports in windows 10 they are undefined?
> 
> 
> function success (midi) {
>     mid=midi;
>     inputs = mid.inputs.values();
>     portout = mid.outputs.values();
>     console.log("Undefined value?="+inputs[0]); //outputs undefined
>     console.log("Undefined value?="+portout[0]);  //outputs undefined

But how can they be listed with next, because the code below do read in the ports and list them?

function selectPorts(){
   portout = mid.outputs.values();
   portin = mid.inputs.values();
   console.log("Undefined value?="+portin[0]); //outputs undefined 
   console.log("Undefined value?="+portout[0]);  //outputs undefined 
   for (output = portout.next(); output && !output.done; output = portout.next()) {
       var deviceOut = output.value.name;
       //console.log(deviceOut);
       var optout = document.createElement("option");
       optout.text = deviceOut;
       document.getElementById("out_portsel").add(optout);
   }

   for (input = portin.next(); input && !input.done; input = portin.next()) {
           var deviceIn = input.value.name;
           var optin = document.createElement("option");
           optin.text = deviceIn;
           document.getElementById("in_portsel").add(optin);
  } 

}

[toc] | [prev] | [next] | [standalone]


#35158

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-06-02 07:59 -0700
Message-ID<d3b9eb83-bffc-4fcc-9de1-07e88287d031@googlegroups.com>
In reply to#35157
Den lördag 2 juni 2018 kl. 16:57:42 UTC+2 skrev Jonas Thörnvall:
> Den lördag 2 juni 2018 kl. 16:42:40 UTC+2 skrev Jonas Thörnvall:
> > Den fredag 1 juni 2018 kl. 22:24:32 UTC+2 skrev Jonas Thörnvall:
> > > Den fredag 1 juni 2018 kl. 18:54:10 UTC+2 skrev Ben Bacarisse:
> > > > Jonas Thörnvall <jonas.thornvall@gmail.com> writes:
> > > > 
> > > > > No i thought if i put var output; in main as global, how could it not
> > > > > be defined further down the chain, because it says undefined.
> > > > 
> > > > You may be confusing output having the value undefined, and the concept
> > > > of a name having no binding.  When a name can't be resolved (maybe
> > > > because the programmer forgot to write "var output;") a ReferenceError
> > > > is raised.  When a variable name *can* be resolved but no value has been
> > > > assigned to it (such as when you write "var output;"), the variable will
> > > > have the undefined value.  This is the sole value of the Undefined
> > > > type.
> > > > 
> > > > -- 
> > > > Ben.
> > > 
> > > It is even weirder then that in XP the value is defined.
> > 
> > Have something changed in the API or is it just a fluke that it works in windows XP.
> > Because when i try to get ports in windows 10 they are undefined?
> > 
> > 
> > function success (midi) {
> >     mid=midi;
> >     inputs = mid.inputs.values();
> >     portout = mid.outputs.values();
> >     console.log("Undefined value?="+inputs[0]); //outputs undefined
> >     console.log("Undefined value?="+portout[0]);  //outputs undefined
> 
> But how can they be listed with next, because the code below do read in the ports and list them?
> 
> function selectPorts(){
>    portout = mid.outputs.values();
>    portin = mid.inputs.values();
>    console.log("Undefined value?="+portin[0]); //outputs undefined 
>    console.log("Undefined value?="+portout[0]);  //outputs undefined 
>    for (output = portout.next(); output && !output.done; output = portout.next()) {
>        var deviceOut = output.value.name;
>        //console.log(deviceOut);
>        var optout = document.createElement("option");
>        optout.text = deviceOut;
>        document.getElementById("out_portsel").add(optout);
>    }
> 
>    for (input = portin.next(); input && !input.done; input = portin.next()) {
>            var deviceIn = input.value.name;
>            var optin = document.createElement("option");
>            optin.text = deviceIn;
>            document.getElementById("in_portsel").add(optin);
>   } 
> 
> }

Or is it garbage in the index structure, how can i check for which next "index" the ports appear?

[toc] | [prev] | [next] | [standalone]


#35159

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2018-06-02 18:05 +0200
Message-ID<XnsA8F5B81A6C447eejj99@194.109.6.166>
In reply to#35156
=?UTF-8?Q?Jonas_Th=C3=B6rnvall?= <jonas.thornvall@gmail.com> wrote on 02 Jun 
2018 in comp.lang.javascript:

> function success (midi) {
>     mid=midi;

[Why not just use midi, mid is not needed???]

You should test mid here!!!!
If mid is not the object you need, the testing of the rest is nonsense.

console.log( 'What is the type of mid?', typeof mid );

>     inputs = mid.inputs.values();

now test for mid.inputs:

console.log( 'What is the type of mid.inputs?', typeof mid.inputs );


>     portout = mid.outputs.values();

now test for mid.outputs:

console.log( 'What is the type of mid.outputs?', typeof mid.outputs );

>     console.log("Undefined value?="+inputs[0]); //outputs undefined

wrong remark!!!

>     console.log("Undefined value?="+portout[0]);  //outputs undefined

 



-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#35160

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-06-02 09:19 -0700
Message-ID<67c8c6c7-b5d4-49f8-88b2-fbdeb3487a2e@googlegroups.com>
In reply to#35159
Den lördag 2 juni 2018 kl. 18:06:02 UTC+2 skrev Evertjan.:
> =?UTF-8?Q?Jonas_Th=C3=B6rnvall?= <jonas.thornvall@gmail.com> wrote on 02 Jun 
> 2018 in comp.lang.javascript:
> 
> > function success (midi) {
> >     mid=midi;
> 
> [Why not just use midi, mid is not needed???]
> 
> You should test mid here!!!!
> If mid is not the object you need, the testing of the rest is nonsense.
> 
> console.log( 'What is the type of mid?', typeof mid );
> 
> >     inputs = mid.inputs.values();
> 
> now test for mid.inputs:
> 
> console.log( 'What is the type of mid.inputs?', typeof mid.inputs );
> 
> 
> >     portout = mid.outputs.values();
> 
> now test for mid.outputs:
> 
> console.log( 'What is the type of mid.outputs?', typeof mid.outputs );
> 
> >     console.log("Undefined value?="+inputs[0]); //outputs undefined
> 
> wrong remark!!!
> 
> >     console.log("Undefined value?="+portout[0]);  //outputs undefined
> 
>  
> 
> 
> 
> -- 
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)

Right now i am pretty tired of this iterator shit i had the stupid idea that an iterator was  an array iterator where you did not have to set the bound of an array. But the ***idiots*** who implemented this have turned it into a little convoluted blackbox.

[toc] | [prev] | [next] | [standalone]


#35161

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-06-02 09:28 -0700
Message-ID<a0f8a420-7627-41f6-9502-f2786f4edd9d@googlegroups.com>
In reply to#35159
Den lördag 2 juni 2018 kl. 18:06:02 UTC+2 skrev Evertjan.:
> =?UTF-8?Q?Jonas_Th=C3=B6rnvall?= <jonas.thornvall@gmail.com> wrote on 02 Jun 
> 2018 in comp.lang.javascript:
> 
> > function success (midi) {
> >     mid=midi;
> 
> [Why not just use midi, mid is not needed???]
> 
> You should test mid here!!!!
> If mid is not the object you need, the testing of the rest is nonsense.
> 
> console.log( 'What is the type of mid?', typeof mid );
> 
> >     inputs = mid.inputs.values();
> 
> now test for mid.inputs:
> 
> console.log( 'What is the type of mid.inputs?', typeof mid.inputs );
> 
> 
> >     portout = mid.outputs.values();
> 
> now test for mid.outputs:
> 
> console.log( 'What is the type of mid.outputs?', typeof mid.outputs );
> 
> >     console.log("Undefined value?="+inputs[0]); //outputs undefined
> 
> wrong remark!!!
> 
> >     console.log("Undefined value?="+portout[0]);  //outputs undefined
> 
>  
> 
> 
> 
> -- 
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)

You see it is like this everytime someone have some clever idea howto implement a function like an iterator to scroll thru an array. 

There is always some little anal fuck of ENTP that one year later decide that you should probably use it in a more convoluted way, send some parameters to it. Have to declare the scope of it so on, so on. They are worthless piece of shits who construct things out of their manual annual ass. And that fucking drive me mad, what the fuck was wrong with iterator it worked before?

And why the fuck did it change? What the fuck is an iterator anyway, if it is not a way to scroll thru index x->y

And what fucking hillybilly ENTP decided it probably did need some declarations and some extra parameters to work as intended?

[toc] | [prev] | [next] | [standalone]


#35162

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-06-02 09:36 -0700
Message-ID<a4c4ef15-33d0-4d3e-8b1b-53b9420a19c0@googlegroups.com>
In reply to#35161
Den lördag 2 juni 2018 kl. 18:28:37 UTC+2 skrev Jonas Thörnvall:
> Den lördag 2 juni 2018 kl. 18:06:02 UTC+2 skrev Evertjan.:
> > =?UTF-8?Q?Jonas_Th=C3=B6rnvall?= <jonas.thornvall@gmail.com> wrote on 02 Jun 
> > 2018 in comp.lang.javascript:
> > 
> > > function success (midi) {
> > >     mid=midi;
> > 
> > [Why not just use midi, mid is not needed???]
> > 
> > You should test mid here!!!!
> > If mid is not the object you need, the testing of the rest is nonsense.
> > 
> > console.log( 'What is the type of mid?', typeof mid );
> > 
> > >     inputs = mid.inputs.values();
> > 
> > now test for mid.inputs:
> > 
> > console.log( 'What is the type of mid.inputs?', typeof mid.inputs );
> > 
> > 
> > >     portout = mid.outputs.values();
> > 
> > now test for mid.outputs:
> > 
> > console.log( 'What is the type of mid.outputs?', typeof mid.outputs );
> > 
> > >     console.log("Undefined value?="+inputs[0]); //outputs undefined
> > 
> > wrong remark!!!
> > 
> > >     console.log("Undefined value?="+portout[0]);  //outputs undefined
> > 
> >  
> > 
> > 
> > 
> > -- 
> > Evertjan.
> > The Netherlands.
> > (Please change the x'es to dots in my emailaddress)
> 
> You see it is like this everytime someone have some clever idea howto implement a function like an iterator to scroll thru an array. 
> 
> There is always some little anal fuck of ENTP that one year later decide that you should probably use it in a more convoluted way, send some parameters to it. Have to declare the scope of it so on, so on. They are worthless piece of shits who construct things out of their manual annual ass. And that fucking drive me mad, what the fuck was wrong with iterator it worked before?
> 
> And why the fuck did it change? What the fuck is an iterator anyway, if it is not a way to scroll thru index x->y
> 
> And what fucking hillybilly ENTP decided it probably did need some declarations and some extra parameters to work as intended?

So what the fuck is output if not an array of objects, an array of anal ENTP's. They made something out of an indexed array that you can't reach the index of? It acts like an array using next, are they fucking morons? But if you check any index of it, it is empty WTF??? 

So what the fuck is next if it do not refer to an index? Next idiot in line?

[toc] | [prev] | [next] | [standalone]


#35164

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-06-02 09:49 -0700
Message-ID<8977c737-7774-4f23-98c6-385cf1197c55@googlegroups.com>
In reply to#35162
Den lördag 2 juni 2018 kl. 18:36:59 UTC+2 skrev Jonas Thörnvall:
> Den lördag 2 juni 2018 kl. 18:28:37 UTC+2 skrev Jonas Thörnvall:
> > Den lördag 2 juni 2018 kl. 18:06:02 UTC+2 skrev Evertjan.:
> > > =?UTF-8?Q?Jonas_Th=C3=B6rnvall?= <jonas.thornvall@gmail.com> wrote on 02 Jun 
> > > 2018 in comp.lang.javascript:
> > > 
> > > > function success (midi) {
> > > >     mid=midi;
> > > 
> > > [Why not just use midi, mid is not needed???]
> > > 
> > > You should test mid here!!!!
> > > If mid is not the object you need, the testing of the rest is nonsense.
> > > 
> > > console.log( 'What is the type of mid?', typeof mid );
> > > 
> > > >     inputs = mid.inputs.values();
> > > 
> > > now test for mid.inputs:
> > > 
> > > console.log( 'What is the type of mid.inputs?', typeof mid.inputs );
> > > 
> > > 
> > > >     portout = mid.outputs.values();
> > > 
> > > now test for mid.outputs:
> > > 
> > > console.log( 'What is the type of mid.outputs?', typeof mid.outputs );
> > > 
> > > >     console.log("Undefined value?="+inputs[0]); //outputs undefined
> > > 
> > > wrong remark!!!
> > > 
> > > >     console.log("Undefined value?="+portout[0]);  //outputs undefined
> > > 
> > >  
> > > 
> > > 
> > > 
> > > -- 
> > > Evertjan.
> > > The Netherlands.
> > > (Please change the x'es to dots in my emailaddress)
> > 
> > You see it is like this everytime someone have some clever idea howto implement a function like an iterator to scroll thru an array. 
> > 
> > There is always some little anal fuck of ENTP that one year later decide that you should probably use it in a more convoluted way, send some parameters to it. Have to declare the scope of it so on, so on. They are worthless piece of shits who construct things out of their manual annual ass. And that fucking drive me mad, what the fuck was wrong with iterator it worked before?
> > 
> > And why the fuck did it change? What the fuck is an iterator anyway, if it is not a way to scroll thru index x->y
> > 
> > And what fucking hillybilly ENTP decided it probably did need some declarations and some extra parameters to work as intended?
> 
> So what the fuck is output if not an array of objects, an array of anal ENTP's. They made something out of an indexed array that you can't reach the index of? It acts like an array using next, are they fucking morons? But if you check any index of it, it is empty WTF??? 
> 
> So what the fuck is next if it do not refer to an index? Next idiot in line?

If i wanted spend my life to read manual i had chosen some weird fucking symbolic programming language to start with, the whole idea with script languages was to send out the fucking moron ENTP's with their manuals on their asses, it should be self declarative, but it takes some years and then the fucking ENTP's manage to nestle them self in because they know the fucking language and manuals inside out. And suddenly the braindamaged low IQ turn with a scope like an ant suddenly reeponsible for the further development of the language, and it turn into some abstract manual dependent shit because they can't relate to concepts. Stupid fucks, i need the manual for the symbolic language sir. If programming was not so fucking timeconsuming to start with they never been on top of development of programming languages.

[toc] | [prev] | [next] | [standalone]


#35166

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-06-02 11:06 -0700
Message-ID<15568c65-8666-4d1b-b1eb-ddc2048bc615@googlegroups.com>
In reply to#35164
Den lördag 2 juni 2018 kl. 18:49:53 UTC+2 skrev Jonas Thörnvall:
> Den lördag 2 juni 2018 kl. 18:36:59 UTC+2 skrev Jonas Thörnvall:
> > Den lördag 2 juni 2018 kl. 18:28:37 UTC+2 skrev Jonas Thörnvall:
> > > Den lördag 2 juni 2018 kl. 18:06:02 UTC+2 skrev Evertjan.:
> > > > =?UTF-8?Q?Jonas_Th=C3=B6rnvall?= <jonas.thornvall@gmail.com> wrote on 02 Jun 
> > > > 2018 in comp.lang.javascript:
> > > > 
> > > > > function success (midi) {
> > > > >     mid=midi;
> > > > 
> > > > [Why not just use midi, mid is not needed???]
> > > > 
> > > > You should test mid here!!!!
> > > > If mid is not the object you need, the testing of the rest is nonsense.
> > > > 
> > > > console.log( 'What is the type of mid?', typeof mid );
> > > > 
> > > > >     inputs = mid.inputs.values();
> > > > 
> > > > now test for mid.inputs:
> > > > 
> > > > console.log( 'What is the type of mid.inputs?', typeof mid.inputs );
> > > > 
> > > > 
> > > > >     portout = mid.outputs.values();
> > > > 
> > > > now test for mid.outputs:
> > > > 
> > > > console.log( 'What is the type of mid.outputs?', typeof mid.outputs );
> > > > 
> > > > >     console.log("Undefined value?="+inputs[0]); //outputs undefined
> > > > 
> > > > wrong remark!!!
> > > > 
> > > > >     console.log("Undefined value?="+portout[0]);  //outputs undefined
> > > > 
> > > >  
> > > > 
> > > > 
> > > > 
> > > > -- 
> > > > Evertjan.
> > > > The Netherlands.
> > > > (Please change the x'es to dots in my emailaddress)
> > > 
> > > You see it is like this everytime someone have some clever idea howto implement a function like an iterator to scroll thru an array. 
> > > 
> > > There is always some little anal fuck of ENTP that one year later decide that you should probably use it in a more convoluted way, send some parameters to it. Have to declare the scope of it so on, so on. They are worthless piece of shits who construct things out of their manual annual ass. And that fucking drive me mad, what the fuck was wrong with iterator it worked before?
> > > 
> > > And why the fuck did it change? What the fuck is an iterator anyway, if it is not a way to scroll thru index x->y
> > > 
> > > And what fucking hillybilly ENTP decided it probably did need some declarations and some extra parameters to work as intended?
> > 
> > So what the fuck is output if not an array of objects, an array of anal ENTP's. They made something out of an indexed array that you can't reach the index of? It acts like an array using next, are they fucking morons? But if you check any index of it, it is empty WTF??? 
> > 
> > So what the fuck is next if it do not refer to an index? Next idiot in line?
> 
> If i wanted spend my life to read manual i had chosen some weird fucking symbolic programming language to start with, the whole idea with script languages was to send out the fucking moron ENTP's with their manuals on their asses, it should be self declarative, but it takes some years and then the fucking ENTP's manage to nestle them self in because they know the fucking language and manuals inside out. And suddenly the braindamaged low IQ turn with a scope like an ant suddenly reeponsible for the further development of the language, and it turn into some abstract manual dependent shit because they can't relate to concepts. Stupid fucks, i need the manual for the symbolic language sir. If programming was not so fucking timeconsuming to start with they never been on top of development of programming languages.


If someone can tell me why it pass using.
Opera 36.0 Version:	36.0.2130.80

I am pretty sure it did pass on both firefox and chrome when i started, but firfox has been updated and no longer pass. And the version of chrome i just installed do not give error message about output, but do not register any events over the inport.

[toc] | [prev] | [next] | [standalone]


#35167

FromJonas Thörnvall <jonas.thornvall@gmail.com>
Date2018-06-02 11:18 -0700
Message-ID<b838d0f9-f2a7-4a6c-bb8f-8acc4bcfe13b@googlegroups.com>
In reply to#35164
Den lördag 2 juni 2018 kl. 18:49:53 UTC+2 skrev Jonas Thörnvall:
> Den lördag 2 juni 2018 kl. 18:36:59 UTC+2 skrev Jonas Thörnvall:
> > Den lördag 2 juni 2018 kl. 18:28:37 UTC+2 skrev Jonas Thörnvall:
> > > Den lördag 2 juni 2018 kl. 18:06:02 UTC+2 skrev Evertjan.:
> > > > =?UTF-8?Q?Jonas_Th=C3=B6rnvall?= <jonas.thornvall@gmail.com> wrote on 02 Jun 
> > > > 2018 in comp.lang.javascript:
> > > > 
> > > > > function success (midi) {
> > > > >     mid=midi;
> > > > 
> > > > [Why not just use midi, mid is not needed???]
> > > > 
> > > > You should test mid here!!!!
> > > > If mid is not the object you need, the testing of the rest is nonsense.
> > > > 
> > > > console.log( 'What is the type of mid?', typeof mid );
> > > > 
> > > > >     inputs = mid.inputs.values();
> > > > 
> > > > now test for mid.inputs:
> > > > 
> > > > console.log( 'What is the type of mid.inputs?', typeof mid.inputs );
> > > > 
> > > > 
> > > > >     portout = mid.outputs.values();
> > > > 
> > > > now test for mid.outputs:
> > > > 
> > > > console.log( 'What is the type of mid.outputs?', typeof mid.outputs );
> > > > 
> > > > >     console.log("Undefined value?="+inputs[0]); //outputs undefined
> > > > 
> > > > wrong remark!!!
> > > > 
> > > > >     console.log("Undefined value?="+portout[0]);  //outputs undefined
> > > > 
> > > >  
> > > > 
> > > > 
> > > > 
> > > > -- 
> > > > Evertjan.
> > > > The Netherlands.
> > > > (Please change the x'es to dots in my emailaddress)
> > > 
> > > You see it is like this everytime someone have some clever idea howto implement a function like an iterator to scroll thru an array. 
> > > 
> > > There is always some little anal fuck of ENTP that one year later decide that you should probably use it in a more convoluted way, send some parameters to it. Have to declare the scope of it so on, so on. They are worthless piece of shits who construct things out of their manual annual ass. And that fucking drive me mad, what the fuck was wrong with iterator it worked before?
> > > 
> > > And why the fuck did it change? What the fuck is an iterator anyway, if it is not a way to scroll thru index x->y
> > > 
> > > And what fucking hillybilly ENTP decided it probably did need some declarations and some extra parameters to work as intended?
> > 
> > So what the fuck is output if not an array of objects, an array of anal ENTP's. They made something out of an indexed array that you can't reach the index of? It acts like an array using next, are they fucking morons? But if you check any index of it, it is empty WTF??? 
> > 
> > So what the fuck is next if it do not refer to an index? Next idiot in line?
> 
> If i wanted spend my life to read manual i had chosen some weird fucking symbolic programming language to start with, the whole idea with script languages was to send out the fucking moron ENTP's with their manuals on their asses, it should be self declarative, but it takes some years and then the fucking ENTP's manage to nestle them self in because they know the fucking language and manuals inside out. And suddenly the braindamaged low IQ turn with a scope like an ant suddenly reeponsible for the further development of the language, and it turn into some abstract manual dependent shit because they can't relate to concepts. Stupid fucks, i need the manual for the symbolic language sir. If programming was not so fucking timeconsuming to start with they never been on top of development of programming languages.

So that is the way it is the smart guy have an idea create a language out of it, something that later turn into obscure mishmash, that require blipblops.

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.javascript


csiph-web