[scilab-Users] Passing arguments by reference

calixte calixte.denizet at ac-rennes.fr
Tue Sep 7 00:31:15 CEST 2010


Le lundi 06 septembre 2010 à 10:56 +0200, Nicolas FEZANS a écrit :

Hi,

If you define f in an external interface, it's possible (and fast) in
using the function intppty (see help intppty)

Calixte

> Hi all,
> 
> well I did absolutely need that in the past and could do it by means
> of strings containing the name of the variables or functions I wanted
> to pass and the "execstr" function. It is not 100% ideal for various
> reasons but it did work very well and fast. I later tried to remove
> some of them of my code (when the amount data were small) but it lead
> to significantly slower execution, so I ended up letting all of them.
> 
> I hope it helps!
> 
> Nicolas
> 
> 
> On Mon, Sep 6, 2010 at 9:29 AM, Mathieu Dubois <mathieu.dubois at limsi.fr> wrote:
> > AFAIK, there is no way to do that...
> >
> > However there is a lengthy article on scilab wiki (http://wiki.scilab.org/)
> > called "Emulate Object Oriented" which might help you.
> >
> > Mathieu
> >
> > On 09/01/2010 07:56 PM, André FS wrote:
> >
> > Hello, people.
> >
> > Is there any special operator to do that?
> >
> > -->function f(x)
> > -->   (?)x = (?)x+1
> > -->endfunction;
> > -->a=1;
> > -->f(a);
> > -->disp(a);
> >    2
> >
> > --
> > André FS
> > Aeronautical Engineering Student
> > Instituto Tecnológico de Aeronáutica (www.ita.br)
> > CENIC (http://www.cenic.biz/index_1.html)
> >
> >





More information about the users mailing list