[sr-dev] trouble with testing $var
andrei at iptel.org
Mon Nov 16 20:02:00 CET 2009
On Nov 10, 2009 at 12:49, Juha Heinanen <jh at tutpro.com> wrote:
> Andrei Pelinescu-Onciul writes:
> > We could generate an error message, but only at runtime (because we
> > don't know the type of $var(tmp) at script compile time).
> run-time would be great. current no-error implementation results in
> many non-working scripts, where people wonder what is wrong with them.
Latest sr_3.0 should have them, as warnings, e.g.:
WARNING: <core> [rvalue.c:987]: automatic string to int conversion for
WARNING: <core> [rvalue.c:1838]: rval expression conversion to int
^^^^^^^^^^^ expression position in the config.
The behaviour can now be controlled by defines.
More information about the sr-dev