<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=Windows-1252 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19120"></HEAD>
<BODY
style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; WORD-WRAP: break-word; PADDING-TOP: 15px; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"
id=MailContainerBody leftMargin=0 topMargin=0 bgColor=#ffffff
CanvasTabStop="true" name="Compose message area">
<DIV><FONT size=2 face=Arial>Yes, that compiles, but looks a bit perverse
since one intuitively is induced to</FONT></DIV>
<DIV><FONT size=2 face=Arial>think that the VAL source </FONT><FONT size=2
face=Arial>should fit the VAL destination because it is a
"legal"</FONT></DIV>
<DIV><FONT size=2 face=Arial>LOOPHOLE and should be submitted to the same
restrictions as the </FONT><FONT size=2 face=Arial>latter.</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><FONT face=Arial></FONT><FONT face=Arial></FONT><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A
title="mailto:antony.hosking@gmail.com
CTRL + Click to follow link"
href="mailto:antony.hosking@gmail.com">Antony Hosking</A> </DIV>
<DIV><B>Sent:</B> Saturday, March 10, 2012 4:32 PM</DIV>
<DIV><B>To:</B> <A
title="mailto:dmuysers@hotmail.com
CTRL + Click to follow link"
href="mailto:dmuysers@hotmail.com">Dirk Muysers</A> </DIV>
<DIV><B>Cc:</B> <A
title="mailto:m3devel@elegosoft.com
CTRL + Click to follow link"
href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</A> </DIV>
<DIV><B>Subject:</B> Re: [M3devel] LONGINT</DIV></DIV></DIV>
<DIV><BR></DIV>
<DIV>Have you tried ORD(VAL(x, INTEGER)) where x is a LONGINT?</DIV>
<DIV><BR></DIV>
<DIV>I’m surprised about the second problem. Perhaps it is not yet fixed
in that release.</DIV><BR>
<DIV>
<DIV>On Mar 10, 2012, at 10:06 AM, Dirk Muysers wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<META name=GENERATOR content="MSHTML 8.00.6001.19120">
<DIV style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody name="Compose message area" leftmargin="0" topmargin="0"
bgcolor="#ffffff" canvastabstop="true">
<DIV><FONT face=Arial>It is my understanding that ORD(x), where x is a LONGINT
should return x </FONT></DIV>
<DIV><FONT face=Arial>as an INTEGER, provided the (hidden) range check
succeeds.</FONT></DIV>
<DIV><FONT face=Arial>It actually fails to compile (cm3 5.8.6 on Win32) with
"Incompatible types (n)".</FONT></DIV>
<DIV><FONT face=Arial>And, also, one can't specify a LONGINT literal greater
than LAST(INTEGER).</FONT></DIV>
<DIV><FONT face=Arial>("invalid longint literal").</FONT></DIV>
<DIV><FONT
face=Arial></FONT> </DIV></DIV></BLOCKQUOTE></DIV><BR></BODY></HTML>