[Scilab-users] function with public variables possible?
Hello! In may first exercises with SCILab functions I was disappointed that I cannot see the variables declared and used in the function with Variable Browser. I tried the global statement, but I cannot browse the global variables in the usual way. Is there a way to have all variables public? Thank you Erhy -- View this message in context: http://mailinglists.scilab.org/function-with-public-variables-possible-tp4035458.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] function with public variables possible?
What exactly do you want? Are you trying to modify global variables from within a function? Are you trying to pass values from the function to the outside world? Are you trying to use (but not modify) global variables from within a function? Or do you disagree with the way that the variable browser displays variables? On Fri, 2017-02-10 at 07:48 -0700, Erhy wrote: > Hello! > In may first exercises with SCILab functions I was disappointed that > I cannot see the variables declared and used in the function with > Variable > Browser. > > I tried the global statement, but I cannot browse the global > variables in > the usual way. > > Is there a way to have all variables public? > > Thank you > Erhy > > > > > > -- > View this message in context: http://mailinglists.scilab.org/function > -with-public-variables-possible-tp4035458.html > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. > ___ > users mailing list > users@lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] function with public variables possible?
Sorry -- just re-read your question and realized what you actually meant. I just double-checked this -- if you hit a breakpoint inside a function, the variable browser shows that functions variables. Once you exit the function, the variables that only exist within the function disappear. On Fri, 2017-02-10 at 07:48 -0700, Erhy wrote: > Hello! > In may first exercises with SCILab functions I was disappointed that > I cannot see the variables declared and used in the function with > Variable > Browser. > > I tried the global statement, but I cannot browse the global > variables in > the usual way. > > Is there a way to have all variables public? > > Thank you > Erhy > > > > > > -- > View this message in context: http://mailinglists.scilab.org/function > -with-public-variables-possible-tp4035458.html > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. > ___ > users mailing list > users@lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] function with public variables possible?
Tim Wescott wrote > if you hit a breakpoint inside a > function, the variable browser shows that functions variables. Once > you exit the function, the variables that only exist within the > function disappear. Thank you, I thinks this helps. Erhy -- View this message in context: http://mailinglists.scilab.org/function-with-public-variables-possible-tp4035458p4035465.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users