ArrayArrayArrayArray BrainModular BrainModular Users Forum 2014-03-26T13:19:37+02:00 https://www.brainmodular.com/forums/app.php/feed/topic/4327 2014-03-26T13:19:37+02:00 2014-03-26T13:19:37+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4327&p=29222#p29222 <![CDATA[variable scope in the callback code block]]>
but one way or another, the engine end up by calling param callback multiple time, one for each param who need it, one after one

Statistics: Posted by martignasse — 26 Mar 2014, 12:19


]]>
2014-03-24T14:45:47+02:00 2014-03-24T14:45:47+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4327&p=29203#p29203 <![CDATA[variable scope in the callback code block]]>
So no matter how complex the input streams get, callbacks are called one at a time? What if all params receive input at exactly the same time?

I was imagining it to have a more asynchronous nature.

Anyway, thanks for the clarification!

Statistics: Posted by ceasless — 24 Mar 2014, 13:45


]]>
2014-03-24T13:28:14+02:00 2014-03-24T13:28:14+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4327&p=29202#p29202 <![CDATA[variable scope in the callback code block]]>
you are speaking about script right ?

just to be sure ;)

if so,

each time the callback function is called, it end up in only one case block and this block is guaranteed to be executed plainly before another callback call

thus, you can use only one counter variable for the callback function

for infos, it's not the same for the process function

hope it help

Statistics: Posted by martignasse — 24 Mar 2014, 12:28


]]>
2014-03-23T14:06:36+02:00 2014-03-23T14:06:36+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4327&p=29189#p29189 <![CDATA[variable scope in the callback code block]]>
I've been playing it safe so far and creating new counters and temp variables for each block because I'm worried what might happen if two callbacks are initiated and both are using 'x' as a counter in a for loop, but maybe this isn't actually something I need to worry about?

Statistics: Posted by ceasless — 23 Mar 2014, 13:06


]]>
BrainModular BrainModular Users Forum 2014-03-26T13:19:37+02:00 https://www.brainmodular.com/forums/app.php/feed/topic/4327 2014-03-26T13:19:37+02:00 2014-03-26T13:19:37+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4327&p=29222#p29222 <![CDATA[variable scope in the callback code block]]>
but one way or another, the engine end up by calling param callback multiple time, one for each param who need it, one after one

Statistics: Posted by martignasse — 26 Mar 2014, 12:19


]]>
2014-03-24T14:45:47+02:00 2014-03-24T14:45:47+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4327&p=29203#p29203 <![CDATA[variable scope in the callback code block]]>
So no matter how complex the input streams get, callbacks are called one at a time? What if all params receive input at exactly the same time?

I was imagining it to have a more asynchronous nature.

Anyway, thanks for the clarification!

Statistics: Posted by ceasless — 24 Mar 2014, 13:45


]]>
2014-03-24T13:28:14+02:00 2014-03-24T13:28:14+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4327&p=29202#p29202 <![CDATA[variable scope in the callback code block]]>
you are speaking about script right ?

just to be sure ;)

if so,

each time the callback function is called, it end up in only one case block and this block is guaranteed to be executed plainly before another callback call

thus, you can use only one counter variable for the callback function

for infos, it's not the same for the process function

hope it help

Statistics: Posted by martignasse — 24 Mar 2014, 12:28


]]>
2014-03-23T14:06:36+02:00 2014-03-23T14:06:36+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=4327&p=29189#p29189 <![CDATA[variable scope in the callback code block]]>
I've been playing it safe so far and creating new counters and temp variables for each block because I'm worried what might happen if two callbacks are initiated and both are using 'x' as a counter in a for loop, but maybe this isn't actually something I need to worry about?

Statistics: Posted by ceasless — 23 Mar 2014, 13:06


]]>