[SR-Users] how can string "0" be equal to int 0?
Juha Heinanen
jh at tutpro.com
Fri Oct 15 13:43:06 CEST 2010
Daniel-Constantin Mierla writes:
> I don't think a strict type checking is suitable for configuration file
> - e.g., if I want to check value in cseq, don't want to get lost in type
> conversions.
>
> If there is going to be such error messages, they must be enclosed in a
> config parameter.
yes, there could be a config parameter
"warn_about_implicit_type_conversions" or something like that. i would
definitely turn it on, since it would not be a big deal for me to add
(int) or (string) in front of a variable when i want type conversion to
be done in order to avoid config mistakes that get unnoticed.
-- juha
More information about the sr-users
mailing list