<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
No, it's a fix of a gotcha from C. The C code would just allow the assignment.</blockquote><div><br></div><div>Yes Andrei.</div><div><br></div><div>But it does not look clean if you have to write:</div><div><br></div>

<div>byte a, b, c;</div><div>a = cast(byte) (b + c);</div><div><br></div><div>Well I know the advantages (safety). But imagine having to write all that when working with bytes and shorts. Makes it really difficult to work with shorts and bytes in D. Would I be asking for too much if I ask DMD to provide a compiler flag that makes it return bytes and shorts for operations on them? So the deal would be, if you use this compiler flag, code behavior would be different from that of C/C++.</div>

<div><br></div><div>What we get would be more practical short and byte behavior.</div><div><br></div><div>Regards</div><div>- Puneet</div><div><br></div></div>