[Mono-list] VB.NET and C# differences in compiling
Mark Bingham
mbingham@cantab.net
Mon, 30 Sep 2002 15:10:37 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_000E_01C26893.88869DC0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
<snip: Stack handling>
> About add.ovf, I have to see on C# specifications. I can think that C#
is
> something different from the CLI and can be implemented also on
systems
> that
> have not add.ovf equivalent (checking overflow cost a lot!). VB.NET
runs
> only on CLI so add.ovf is always present.....
C# has the keywords (and operators) checked and unchecked to control
this. (See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/h
tml/vclrfCheckedUncheckedStatements.asp). VB.NET (to the best of my
knowledge) does not.
Hope that helps.
Mark
--
Mark Bingham
------=_NextPart_000_000E_01C26893.88869DC0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0mm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{margin:0mm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 69.6pt 72.0pt 69.6pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-GB link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'><snip: Stack handling></span></font></p>
<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'> </span></font></p>
<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>> About add.ovf, I have to see on C# specifications. I can =
think
that C# is</span></font></p>
<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>> something different from the CLI and can be implemented =
also on
systems</span></font></p>
<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>> that</span></font></p>
<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>> have not add.ovf equivalent (checking overflow cost a =
lot!).
VB.NET runs</span></font></p>
<p class=3DMsoPlainText><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt'>> only on CLI so add.ovf is always =
present.....</span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;color:black'> </span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;color:black'>C# has the keywords (and =
operators)
checked and unchecked to control this. (See <a
href=3D"http://msdn.microsoft.com/library/default.asp?url=3D/library/en-u=
s/csref/html/vclrfCheckedUncheckedStatements.asp">http://msdn.microsoft.c=
om/library/default.asp?url=3D/library/en-us/csref/html/vclrfCheckedUnchec=
kedStatements.asp</a>).
VB.NET (to the best of my knowledge) does not.</span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;color:black'> </span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;color:black'>Hope</span></font><font =
color=3Dblack><span
style=3D'color:black'> that helps.</span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;color:black'> </span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;color:black'>Mark</span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;color:black'> </span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;color:black'>-- </span></font></p>
<p class=3DMsoPlainText><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;color:black'>Mark</span></font><font =
color=3Dblack><span
style=3D'color:black'> </span></font><font color=3Dblack><span =
style=3D'color:black'>Bingham</span></font></p>
</div>
</body>
</html>
------=_NextPart_000_000E_01C26893.88869DC0--