On 05.06.2012 22:06, 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)

There is no information lost. Try casting it back to int.

--
Dmitry Olshansky

Reply via email to