<div>As this thread about the INC/DEC functions had become too long, its time it got its own thread. Please continue the <br>discussion on this thread.</div>
<div> </div>
<div>Regards,</div>
<div> Nir S<br><br></div>
<div class="gmail_quote">On Sat, May 2, 2009 at 9:11 AM, Nir Simionovich <span dir="ltr"><<a href="mailto:nir.simionovich@gmail.com">nir.simionovich@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hmmm... Tilghman has a valid point here - I didn't think about that one. In other words, <br>the function should affect the variable on one hand, but also return the value of the operation back to Asterisk - for usage with other applications and functions. </div>
<div> </div>
<div>I think it's the developer's responsibility to decide if he wants to use that return value or not.</div>
<div> </div><font color="#888888">
<div>Nir<br><br></div></font>
<div>
<div></div>
<div class="h5">
<div class="gmail_quote">On Thu, Apr 30, 2009 at 1:12 AM, Tilghman Lesher <span dir="ltr"><<a href="mailto:tilghman@mail.jeffandtilghman.com" target="_blank">tilghman@mail.jeffandtilghman.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>On Wednesday 29 April 2009 15:22:25 Benny Amorsen wrote:<br>> Tilghman Lesher <<a href="mailto:tilghman@mail.jeffandtilghman.com" target="_blank">tilghman@mail.jeffandtilghman.com</a>> writes:<br>> > I think it should be a function, not an application, as its function is<br>
> > to change a value, not to do something to the channel.<br>><br>> There really is nothing to return, and the function would be primarily<br>> called for side effects.<br><br></div>exten => _XXX,1,Set(foo=3)<br>
exten => _XXX,n,While(${DEC(foo)})<br>exten => _XXX,n,DoSomethingInteresting<br>exten => _XXX,n,EndWhile<br><br>--<br><font color="#888888">Tilghman<br></font>
<div>
<div></div>
<div><br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--/" target="_blank">http://www.api-digital.com--</a><br><br>asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></div></div></blockquote></div><br>
</div></div></blockquote></div><br>