<br><br><div class="gmail_quote">On Wed, Dec 12, 2012 at 9:07 AM, Denis Koroskin <span dir="ltr"><<a href="mailto:2korden@gmail.com" target="_blank">2korden@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

What's now is safer than what you propose. You can always create your own data type that would automatically truncate result if you wish so.</blockquote></div><br><div>:-)</div><div><br></div><div>I should not have used the word "safe" there. All I meant was "safer" than C++ which allows implicit conversion form int to short and long to int.</div>

<div><br></div><div>Yes, I am now using my own User Type.</div><div><br></div><div>Regards</div><div>- Puneet</div>