octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: functions with 'named' arguments


From: Dupuis
Subject: Re: functions with 'named' arguments
Date: Tue, 18 Mar 2008 04:44:18 -0700 (PDT)



Jaroslav Hajek-2 wrote:
> 
> No. This would break compatibility. The call you used above:
> 
> hello(closing="and the rest")
> 
> is not a call by named argument like in R, Python or Fortran, rather
> it is equivalent to
> 
> closing="and the rest" ; hello(closing)
> 
> i.e. you use an assignment expression. I guess there's little point
> arguing which feature is more useful; certainly, both are useful, but
> unfortunately they cannot be used clearly together.
> 
> 

Excuse me ? What am I doing when I use, in R:
meanemp(dist="Normale", 4, mean=10)
meanemp(mean=10, dist="Normale", 4)
? What is the difference with the suggested 
hello(closing='bla') ?

Pascal
-- 
View this message in context: 
http://www.nabble.com/functions-with-%27named%27-arguments-tp16095584p16119419.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]