<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>> These are OS-dependent! They should not be in BasicCtypes.<BR><BR>
1) There is no Utypes on Windows.<BR>
These are very basic types that belong at a very low level.<BR>
In C++ for example, size_t is provided "automatically" by the compiler, no header is needed.<BR>
 <BR>
2) Are they really OS dependent? What OS makes my definitions wrong?<BR>
On what 32 bit architecture is size_t not an unsigned 32 bit integer and ptrdiff_t not a signed 32 bit integer?<BR>
Ditto for 64 bit.<BR>
These should always be the same size as a pointer and with the proper signedness.<BR>
Even if some of the *.i3 files make size_t = int, is that really correct?<BR>
And, I assume int vs. long issue is not an issue here.<BR>
Though they may be different types in C and C++, they need not be in Modula-3 (when they are the same size, of course)<BR>
 <BR>
 - Jay<BR><BR><BR><BR>
<HR id=stopSpelling>
> CC: m3devel@elegosoft.com<BR>> From: hosking@cs.purdue.edu<BR>> Subject: Re: [M3devel] size_t?<BR>> Date: Mon, 11 Feb 2008 11:38:48 -0500<BR>> To: jayk123@hotmail.com<BR>> <BR>> <BR>> On Feb 11, 2008, at 6:23 AM, Jay wrote:<BR>> <BR>> > C:\dev2\cm3.2\m3-libs\m3core\src\C\Common\Cstddef.i3(12): size_t = <BR>> > INTEGER;<BR>> ><BR>> > really? it is signed?<BR>> > and we are sure this is going to be 64 bits on 64 bit targets?<BR>> ><BR>> > size_t and ptrdiff_t ought to be in BasicCtypes, right?<BR>> > That has a 32 bit and 64 bit version, at least.<BR>> <BR>> These are OS-dependent! They should not be in BasicCtypes.<BR>> <BR>> ><BR>> ><BR>> > Does INTEGER effectively equal int or ptrdiff_t?<BR>> ><BR>> > - Jay <BR><br /><hr />Need to know the score, the latest news, or you need your HotmailŪ-get your "fix". <a href='http://www.msnmobilefix.com/Default.aspx' target='_new'>Check it out.</a></body>
</html>