[Serusers] enum and lcr
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Mon Apr 25 20:28:16 CEST 2005
indeed, the if statements are evaluated exactly as in C = left to right,
stop when overall result found.
bogdan
Juha Heinanen wrote:
>Klaus Darilion writes:
>
> > > if (!enum_query("e164.arpa") && !enum_query("e164.info") &&
> > > !enum_query("freenum.org")) {
> > > route(PSTN)
> > > }
> >
> > This may cause unpredictable behaviour, as you never know how the if
> > statement is processed internally. (which lookup will be the first
> > one)
>
>this is news to me. i have always thought that && in ser.cfg has same
>semantics as in C, i.e., that operands are evaluated from left to
>right. is it really true that they can be evaluated in any order?
>
>-- juha
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>
>
More information about the sr-users
mailing list