Skip to content

[Suggestion] String implicit cast warning #83

Description

@Mikk155

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions