[ opensips-Feature Requests-2845500 ] Simplified logic testing

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ opensips-Feature Requests-2845500 ] Simplified logic testing

SourceForge.net
Feature Requests item #2845500, was opened at 2009-08-27 13:13
Message generated for change (Tracker Item Submitted) made by viraptor
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086413&aid=2845500&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Stanislaw Pitucha (viraptor)
Assigned to: Nobody/Anonymous (nobody)
Summary: Simplified logic testing

Initial Comment:
Condition logic could be simplified in two cases:

1. "if (value)" could be equivalent to a truth test "if (value>0)"

2. statements that set $retcode could return them directly too, so that "route(x); if ($retcode>0)" can be written as "if (route(x))"

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086413&aid=2845500&group_id=232389

_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel