1. Call to * Might be short circuited ?
What does this mean?
don cole
SF
2. Re: Call to * Might be short circuited ?
don cole wrote:
>
> What does this mean?
>
if this_func() = 1
and that_func() = 2 then
In the event that this_func does happen to return 1, then
that_func will never be called. If you had some assignments or
code inside that_func which you were expecting to be run, it won't.
The warning means that you shouldn't count on it happening, as
that_func may, under some circumstances, not be called.
Irv
3. Re: Call to * Might be short circuited ?
irv mullins wrote:
>
> don cole wrote:
> >
> > What does this mean?
> >
>
> <font color="#330033"></font>
> <font color="#0000FF">if </font><font color="#330033">this_func() = 1 </font>
> <font color="#0000FF">and </font><font color="#330033">that_func() = 2
> </font><font color="#0000FF">then </font>
> <font color="#330033"></font>
Oops: I guess that should be
or that_func() = 2 then
Irv
4. Re: Call to * Might be short circuited ?
Thank you Irv.
I got it I think.
Don Cole SF
5. Re: Call to * Might be short circuited ?
irv mullins wrote:
>
> irv mullins wrote:
> >
> > don cole wrote:
> > >
> > > What does this mean?
> > >
> >
> > <font color="#330033"></font>
> > <font color="#0000FF">if </font><font color="#330033">this_func() = 1
> > </font>
> > <font color="#0000FF">and </font><font color="#330033">that_func() = 2
> > </font><font color="#0000FF">then </font>
> > <font color="#330033"></font>
>
> Oops: I guess that should be
> <font color="#330033"></font>
> <font color="#0000FF">or </font><font color="#330033">that_func() = 2
> </font><font color="#0000FF">then</font>
> <font color="#330033"></font>
>
> Irv
>
Either way could be short circuited. If <font
color="#330033">this_func()</font> would indeed equal
<font color="#330033">1</font>, the <font color="#0000FF">or</font> version
would be short circuited.
However, if <font color="#330033">this_func()</font> would not equal
<font color="#330033">1</font>, the <font color="#0000FF">and</font> version
would be short circuited.
Phil