[Omake] error when defining a rule inside of a function

Aleksey Nogin nogin at metaprl.org
Sat Jan 13 10:08:25 PST 2007


On 12.01.2007 18:02, Erick Tryzelaar wrote:

> Hello again,
> 
> I've run into a strange error trying to define a rule inside of a function:
> 
> % foo(x, y) =
> foo>      foo(x, y) =
> foo>         $x: $y
> rule>           echo hello $x $y
> rule>           .
> .
> foo>         .
> .
> - : <fun 2>
> % foo(a, b)
> *** omake error:
>   File -: line 32, characters 0-6
>   arity mismatch: expected 2 args, got 6
> 
Hm, this works correctly for me. Which version of OMake are you using?
Have you may be redefined the "rule" function?

Aleksey


More information about the Omake mailing list