[Scilab-users] On parameters passing by name in scilab functions
Tim Wescott
tim at wescottdesign.com
Mon Feb 27 19:07:28 CET 2017
Is this true? Parameter passing by name is hugely useful -- they'd
have to re-write a whole bunch of libraries to make it work, and I'd
have a lot of stuff that would be instantly obsolete.
On Mon, 2017-02-27 at 11:46 -0300, Adelson Oliveira wrote:
> Hi,
>
> Let's take fft as an example.
>
> In scilab 5 one could call fft specifying parameters like dim and
> incr by name,
>
> fft(A,-1,dim=100,incr=1)
>
> Codes that used to work in scilab 5 now gives wrong results (no error
> messages!) in scilab 6 because the new release ignores named
> parameters. To get expected results with scilab 6, one should recast
> the command above as,
>
> fft(A,-1,100,1)
>
> otherwise scilab 6 reads
>
> fft(A,-1)
>
> instead!
>
> What for ignoring parameter names? Also, I have some scilab codes
> where functions do accept names and take different actions
> accordingly. Should I
> change all these codes to use scilab 6?
>
> Thanks
> _______________________________________________
> users mailing list
> users at 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
More information about the users
mailing list