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

Aleksey Nogin nogin at metaprl.org
Sat Jan 13 12:10:53 PST 2007


On 13.01.2007 10:40, Erick Tryzelaar wrote:

> Aleksey Nogin wrote:
>> Hm, this works correctly for me. Which version of OMake are you using?
>> Have you may be redefined the "rule" function?
>>   
> 
> I think thats what I was doing. I didn't know that defining a function
> named "rule" would break rule defining :)

This is an intentional feature - you are allowed to change how the rules
are interpreted. See, for example, the thread at
http://lists.metaprl.org/pipermail/omake/2005-September/000625.html for
a usage example (which was not fully working back then, but, I believe,
this was since fixed).

Aleksey


More information about the Omake mailing list