automatic int to short conversion - the HELL?

downs default_357-line at yahoo.de
Wed Sep 17 19:26:15 PDT 2008


void main() { int i; short x; x = i; }

Excuse me, but - how exactly is it that this is in any way, shape or form valid code?

How can I trust a language that allows those kind of shenanigans?


More information about the Digitalmars-d-learn mailing list