[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:03996] Re: Optional argument and *rest simultaneously

From: matz@... (Yukihiro Matsumoto)
Date: 2000-07-14 03:21:00 UTC
List: ruby-talk #3996
Hi,

In message "[ruby-talk:03973] Optional argument and *rest simultaneously"
    on 00/07/13, Aleksi Niemel<aleksi.niemela@cinnober.com> writes:

|In my test case the first call to foo is working fine, but the second don't
|have any value for the the optional argument so Ruby leaks first entry from
|the *rest and substitute the optional argument with it. Is there a call
|format which works in this case or should the parsing be changed so that
|f_optarg and f_rest_arg can't be present at the same time?

There's no way to do so yet.  I'll work on 1.7 to solve this.

							matz.

In This Thread

Prev Next