[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
named arguments
From: |
Juan Pablo Carbajal |
Subject: |
named arguments |
Date: |
Fri, 16 Mar 2012 12:21:19 +0100 |
Hi,
Looks like named arguments are still positional
function namedarg (a,b='named b',c='named c')
disp(b);
disp(c);
end
> namedarg(1)
named b
named c
> namedarg(1,b=0)
0
named c
> namedarg(1,c=0)
0
named c
I expected the second call to return
named b
0
or I am getting something wrong?
--
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/
- named arguments,
Juan Pablo Carbajal <=
- Re: named arguments, Olaf Till, 2012/03/16
- Re: named arguments, Michael Goffioul, 2012/03/16
- Re: named arguments, Jordi Gutiérrez Hermoso, 2012/03/16
- Re: named arguments, Jordi Gutiérrez Hermoso, 2012/03/16
- Re: named arguments, Olaf Till, 2012/03/16
- Re: named arguments, John W. Eaton, 2012/03/16
- Re: named arguments, Jordi Gutiérrez Hermoso, 2012/03/16
- Re: named arguments, John W. Eaton, 2012/03/16
- Re: named arguments, Michael Goffioul, 2012/03/16