Language Reference: Usual Arithmetic Conversions

2011-04-05 Thread Morlan
The following section from the Language Reference does not correspond to the current dmd compiler (v2.052, Windows) behaviour: Integer values cannot be implicitly converted to another type that cannot represent the integer bit pattern after integral promotion. For example: ubyte u1 =

Re: Language Reference: Usual Arithmetic Conversions

2011-04-05 Thread Simen kjaeraas
On Tue, 05 Apr 2011 20:10:19 +0200, Morlan h...@valentimex.com wrote: The following section from the Language Reference does not correspond to the current dmd compiler (v2.052, Windows) behaviour: Integer values cannot be implicitly converted to another type that cannot represent the integer