[M3devel] Modula-3/C interop in Date/Time?
Jay K
jay.krell at cornell.edu
Thu Apr 15 23:26:06 CEST 2010
Oops, right, of course. Important to get the things right I know to keep the question clear/narrow.
- Jay
From: hosking at cs.purdue.edu
Date: Thu, 15 Apr 2010 12:55:52 -0400
To: jay.krell at cornell.edu
CC: m3devel at elegosoft.com
Subject: Re: [M3devel] Modula-3/C interop in Date/Time?
Excepting that INTEGER is not the same as int on 64-bit platforms.
Antony Hosking | Associate Professor | Computer Science | Purdue University
305 N. University Street | West Lafayette | IN 47907 | USA
Office +1 765 494 6001 | Mobile +1 765 427 5484
On 15 Apr 2010, at 02:45, Jay K wrote:
Is this legal/correct?
Date.i3:
TYPE TimeZone <: REFANY;
VAR Local, UTC: TimeZone; (* granted, will maybe change these to extern *)
Date.m3:
REVEAL TimeZone = BRANDED "Date.TimeZone" REF INTEGER;
DatePosixC.c:
static const int Local = 0;
static const int UTC = 1;
extern const int const * const Date__Local = &Local;
extern const int const * const Date__UTC = &UTC;
- Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20100415/e7d2341b/attachment-0002.html>
More information about the M3devel
mailing list