[SR-Users] route return value confusion

Juha Heinanen jh at tutpro.com
Tue Dec 13 13:25:06 CET 2011


Daniel-Constantin Mierla writes:

> coding wise might not be a lot, thus I haven't analyzed all the cases 
> where functions are evaluated by return code, but it will impact and 
> break config file as it used to be so far, for example:
> 
> route[x] {
>   return -1;
> }
> 
> if(route(x)) will be true, since if(-1) is true in C

i meant get rid of C interpretation when if evaluates the condition,
i.e., do not covert condition to anything, but just test if condition is
< 0 for false and > 0 for true.

-- juha



More information about the sr-users mailing list