Hi,


In message "Re: different order of parameters..."
    on Tue, 2 Aug 2005 18:11:05 +0900, JZ <usenet / zabiello.com> writes:
|
|I'm trying to understand how to call methods in Ruby. Is it possible to
|call parameters in different order? E.g. in Python it is very clear and
|simple to use.
|
|def fun(a=1,b=2): 
|  return 'a:%s, b:%s' % (a,b)
|
|print fun(b=10, a=20)     # a:20, b:10
|print fun(b=111)          # a:1, b:111

|Is it possible that such basic and usefull feature is not implemented in
|Ruby??

No. Keyword arguments like 

   fun(b:20, a:10)

is planned, but named keyword arguments will be separated from
positional arguments still.

							matz.