On Tuesday, 5 June 2012 at 18:06:15 UTC, ctrl wrote:
I don't want them to be performed at all. How do I disable this 'feature'?For example, take a look at this code: import std.stdio; void main() { int x = -1; uint b = x; writeln(b); }It outputs 4294967295, but I want a compile-time error instead. Any suggestions?(compiler version dmd 2.059)
You want a sane language: use a different language, most C-derived language have insane semantic for integers..
Have you tried Ada? BR, renoX
