[Mono-list] ADV: Thinking in C# Release Candidate Ebook Available

Larry O'Brien lobrien@email.com
Thu, 21 Nov 2002 00:33:27 +0800


&gt; &gt; &gt;&gt;From the C# spec, I believe that the sample program: <BR>&gt; &gt; <BR>&gt; &gt; char c = (char) 1; <BR>&gt; &gt; <BR>&gt; &gt; c &lt;&lt;= 1; <BR>&gt; &gt; <BR>&gt; &gt; Should not compile according to the C# spec, and that the Microsoft <BR>&gt; &gt; compiler is more lax than it should be. <BR>&gt; <BR>&gt; Ok, I had a look at the spec and this indeed looks like a bug <BR>&gt; in csc. The issue is that people are going to depend on the <BR>&gt; csc bugs in a way or the other, sigh. What if we emit a <BR>&gt; warning in this case? Something like: <BR><BR>In a small way, putting an issue like this in a book intended for a wider audience than the spec can help. Can anyone give me a fairly explicit reference to the relevant text in the spec? I will call it out in Thinking in C#. <BR>
-- 
<p>_______________________________________________<br>
Sign-up for your own FREE Personalized E-mail at <a href="http://www.mail.com/?sr=signup" target="_new"><font color="#0000FF"> Mail.com</font></a></p>