From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cfd23c10fd537a80 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Ada Calendar oddity Date: 2000/05/21 Message-ID: <8g8on6$a0v$1@nnrp1.deja.com>#1/1 X-Deja-AN: 625728879 References: <39176D85.603D7AEC@research.canon.com.au> <39178DEA.FD2C20FA@research.canon.com.au> <8f92o1$6v$1@nnrp1.deja.com> <3918BB77.693C70D6@research.canon.com.au> <8fahfv$mgt$1@nnrp1.deja.com> <39230A82.CFA6E18D@earthlink.net> <3924B35E.DC0C9CDF@acenet.com.au> <3924D3FF.11D8C99A@earthlink.net> X-Http-Proxy: 1.0 x53.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Sun May 21 13:35:34 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-05-21T00:00:00+00:00 List-Id: In article <3924D3FF.11D8C99A@earthlink.net>, "Robert I. Eachus" wrote: (Changing the > range > for Year_Number would require a different representation for variables > of type Calendar.Time. This is simething that needs to be done slowly, > and with plenty of warning to the compiler vendors.) On the other hand, > a new Long_Time type would cause fewer upward compatibility problems. What really *is* the situation with Ada 95 compilers. Certainly in GNAT we chose a representation for Calendar.Time that can accomodate very wide ranges of times and dates (Calendar.Time is kept in units of nanoseconds stored in a signed 64 bit value which represents very wide time ranges -- tens of thousands of years at least). It certainly is the case that representations of Calendar.Time are the worrisome thing here (think for example of such values written on files). A compiler that has chosen a narrow range representation for this type has, in my view, made a significant mistake which will cause nasty compatibility problems later, but I don't know specifically that any compilers have made this choice. Anyone know what other Ada 95 compilers do? Robert Dewar Ada Core Technologies Sent via Deja.com http://www.deja.com/ Before you buy.