i was a bit of annoyed by the warning:
WARNING: Angelscript: Float value truncated in implicit conversion to integer
But then i stoped to think out. the compiler doesn't warn about string conversion.
I have seen horrible codes which are endless else-if conditions creating countless of strings from implicit conversion for Sven Co-op's string_t.
I believe the same float/int warning applied here will be of help to tell new scripters to instantiate a string in the scope instead of doing that string_t (Or any other implicit casting) multiple times.
i was a bit of annoyed by the warning:
But then i stoped to think out. the compiler doesn't warn about string conversion.
I have seen horrible codes which are endless else-if conditions creating countless of strings from implicit conversion for Sven Co-op's string_t.
I believe the same float/int warning applied here will be of help to tell new scripters to instantiate a string in the scope instead of doing that string_t (Or any other implicit casting) multiple times.