[Serusers] enum and lcr

Iqbal iqbal at gigo.co.uk
Mon Apr 25 19:24:25 CEST 2005


I'm glad someone else said that b4 me, cause my C is useless, but I was 
under the impression that it would follow a logical route, I mean it 
should...shouldn't it

Iqbal

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
>
>.
>
>  
>




More information about the sr-users mailing list