[M3devel] Modula-3/C interop in Date/Time?
Tony Hosking
hosking at cs.purdue.edu
Thu Apr 15 18:55:52 CEST 2010
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/6a4cb308/attachment-0002.html>
More information about the M3devel
mailing list