<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
I'm fine with a compromise that requires no runtime checks and users use ORD() to narrow LONGINT to INTEGER.<BR>
And mixed arithmetic is available, and assignability INTEGER to LONGINT.<BR>
I have that implemented. It is a little onerous for Rd/Wr uses, but ok.<BR>
<BR>
- Jay<BR><BR> <BR>
<HR id=stopSpelling>
From: hosking@cs.purdue.edu<BR>Date: Fri, 8 Jan 2010 21:23:15 -0500<BR>To: jay.krell@cornell.edu<BR>CC: m3devel@elegosoft.com<BR>Subject: Re: [M3devel] still need a branch for longint changes?<BR><BR><BASE>
<DIV>Please hold off on mainline changes. I don't think we have reached consensus yet...</DIV>
<DIV><BR></DIV>
<DIV>The issue remains: mixed arithmetic + checked assignability or not? I'm leaning towards allowing it, but want to hear from others.</DIV>
<DIV><FONT class=ecxApple-style-span color=#0000ff face="'Gill Sans'"><FONT class=ecxApple-style-span color=#000000 face=Helvetica><BR></FONT></FONT></DIV>
<DIV>
<DIV>On 8 Jan 2010, at 21:16, Jay K wrote:</DIV><BR class=ecxApple-interchange-newline>
<BLOCKQUOTE><SPAN style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Helvetica; WHITE-SPACE: normal; LETTER-SPACING: normal; WORD-SPACING: 0px" class=ecxApple-style-span>
<DIV style="FONT-FAMILY: Verdana; FONT-SIZE: 10pt" class=ecxhmmessage>Still need a branch for longint changes?<BR> I doubt what I have is where we are going, though it is a step toward it.<BR> Just wait for Tony to implement Rodney's proposal?<BR> Or I work on it in a branch? It doesn't look too difficult to at least mostly do. I already have "mixed" stuff compiling and assignability INTEGER to LONGINT. I didn't yet do anything requiring runtime checks, but it's not that hard to do, given that there are already checks for assignment involving only partly overlapping ranges.<BR><BR>Or maybe just take my stuff to the mainline and then refine/reduce it later?<BR><BR> - Jay<BR><BR></DIV></SPAN></BLOCKQUOTE></DIV><BR> </body>
</html>