<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Sun, Nov 10, 2013 at 10:42 PM, Jonathan M Davis <span dir="ltr"><<a href="mailto:jmdavisProg@gmx.com" target="_blank">jmdavisProg@gmx.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div>
<br>
</div></div>I always do the cast, though honestly, I think that character literals should<br>
default to dchar rather than char. I'm not sure that we could ever talk Walter<br>
into that though, particularly if he thought that doing so would break code<br>
(I'm not sure whether it would or not, but using char for a character is<br>
almost always a bad idea, so defaulting to char for character literals just<br>
doesn't make sense to me).<br>
<br>
I'm not aware of there being a shorter way to get character literal to be<br>
dchar, though I suppose that if you had to do it a lot, you could create a<br>
function with a short name. e.g.</blockquote><div><br></div><div>OK, thanks. I'll go with the cast, as this way anyone reading the code will be clear on what is happening there.</div><div><br></div><div>And I agree with you than character literals should default to dchar. It's a perpetual source of friction for me.</div>
<div><br></div></div></div></div>