|
List Info
Thread: patch for block args w/ defaults (was Re: resolving lambda | ambiguity)
|
|
| patch for block args w/ defaults (was
Re: resolving lambda | ambiguity) |

|
2008-05-24 16:06:19 |
|
On Fri, May 23, 2008 at 7:18 AM, ts < decoux moulon.inra.fr">decoux moulon.inra.fr> wrote:
Eric Mahurin wrote:
> Is there any reason this idea couldn';t be applied to head?
Try it on your personal version.
Guy Decoux Here is a patch for handling optional args for blocks using this simple idea - use a "primary_value" instead of "arg_value" for the default values. I simply did some cutting and pasting for the argument definitions for "def" and changed "arg_value" to "primary_value". It worked on the first try! Spent more time writing tests (included) than adding the new functionality.
Matz, any chance this could be integrated for a trial period at least? It shouldn9;t cause any compatibility issues.
|
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|