[M3devel] Modula-3/C interop in Date/Time?

Jay K jay.krell at cornell.edu
Thu Apr 15 08:45:48 CEST 2010



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/6c9576bc/attachment-0001.html>


More information about the M3devel mailing list