<div dir="ltr">
<div>Thank you Rafael, <br></div><div><br></div><div>I was looking for
solution which allow object (tlist) modification by function call but it
seems that it is not possible to implement the following without
globals or using function return argument.<br></div><br><div><pre style="font-family:Monospaced"><pre><span style="color:rgb(176,24,19)">function</span> <span style="color:rgb(0,0,0);text-decoration:underline">addChannelToSession</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(131,67,16);font-weight:bold">obj</span><span style="color:rgb(0,0,0)">, </span><span style="color:rgb(131,67,16);font-weight:bold">arg</span><span style="color:rgb(74,85,219)">)</span>
<span style="color:rgb(131,67,16);font-weight:bold">obj</span><span style="color:rgb(92,92,92)">.</span><span style="color:rgb(170,170,170)">channel</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(131,67,16);font-weight:bold">arg</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(176,24,19)">endfunction</span>
<span style="color:rgb(176,24,19)">function</span> <span style="color:rgb(131,67,16);font-weight:bold">obj</span><span style="color:rgb(92,92,92)">=</span><span style="color:rgb(0,0,0);text-decoration:underline">createSession</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">)</span>
<span style="color:rgb(131,67,16);font-weight:bold">obj</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(50,185,185)">tlist</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">[</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">tlisttype</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">"</span><span style="color:rgb(188,143,143)">channel</span><span style="color:rgb(188,143,143)">"</span><span style="color:rgb(74,85,219)">]</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(74,85,219)">[</span><span style="color:rgb(74,85,219)">]</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(176,24,19)">endfunction</span>
<span style="color:rgb(0,0,0)">s</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(0,0,0);text-decoration:underline">createSession</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(100,174,100);font-style:italic">// s.channel is []</span>
<span style="color:rgb(0,0,0);text-decoration:underline">addChannelToSession</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">s</span><span style="color:rgb(0,0,0)">,</span> <span style="color:rgb(188,143,143)">1</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(100,174,100);font-style:italic">// s.channel is 1</span></pre></pre></div>Regards Grzegorz
<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-07-03 11:19 GMT+02:00 Rafael Guerra <span dir="ltr"><<a href="mailto:jrafaelbguerra@hotmail.com" target="_blank">jrafaelbguerra@hotmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="#0563C1" vlink="#954F72" lang="EN-US">
<div class="m_4480111400051734957WordSection1">
<div>
<div>
<p class="MsoNormal"><span class="m_4480111400051734957SpellE"><span class="m_4480111400051734957uiqtextrenderedqtext"><b><font size="2" face="Calibri"><span style="font-size:11.0pt;font-weight:bold">ProszÄ™</span></font></b></span></span><span class="m_4480111400051734957uiqtextrenderedqtext"><b><span style="font-weight:bold"><u></u><u></u></span></b></span></p>
<p class="MsoNormal"><font size="2" face="Calibri" color="black"><span style="font-size:11.0pt;color:black"><u></u><u></u></span></font></p>
</div>
</div>
</div>
</div>
<br>______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>