comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert I. Eachus" <rieachus@earthlink.net>
Subject: Re: Ada Calendar oddity <was Re: C date package>
Date: 2000/05/19
Date: 2000-05-19T00:00:00+00:00	[thread overview]
Message-ID: <3924D3FF.11D8C99A@earthlink.net> (raw)
In-Reply-To: 3924B35E.DC0C9CDF@acenet.com.au

Geoff Bull wrote:
 
> It was that kind of narrow (focussed on one problem) thinking
> that led to the y2k bug!

   That definitely was not the case.  The fact that Year had a
constraint,
and the range of that constraint were both discussed--at length during
the standardization process.  The "Ada Doom Date" of December 31, 2099
was well known, with the realization that it would need to be fixed in a
subsequent version of the standard.  I don't know of anyone who has had
problems due to the 2099 limit, but there are several cases where the
1901 limit made Calendar.Time an unsuitable choice for representing
birthdates.

   During the Ada 9X revision, this issue was revisited, and the doom
date, as such, wasl removed.  An implementation can provide a
Calendar.Time type with a range significantly larger than two hundred
years and not have to make an explicit check for the doom date in the
arithmetic operators.  This change is found in RM 9.6(26).

   As I said in the previous post, I expect that the Year_Number subtype
will be extended in a future version of the standard.  (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.
;-)




  reply	other threads:[~2000-05-19  0:00 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <l0313030eb53d1408aee7@[144.205.16.58]>
2000-05-09  0:00 ` C date package Geoff Bull
2000-05-09  0:00   ` Geoff Bull
2000-05-09  0:00     ` Robert Dewar
2000-05-10  0:00       ` Geoff Bull
2000-05-10  0:00         ` Robert Dewar
2000-05-10  0:00           ` Ada Calendar oddity <was Re: C date package> Preben Randhol
2000-05-10  0:00             ` Tarjei Tj�stheim Jensen
2000-05-11  0:00               ` Charles Hixson
2000-05-11  0:00                 ` Tarjei Tj�stheim Jensen
2000-05-12  0:00                   ` Charles Hixson
2000-05-12  0:00                     ` Tarjei Tj�stheim Jensen
2000-05-11  0:00               ` Geoff Bull
2000-05-11  0:00                 ` Gautier
2000-05-12  0:00                   ` Geoff Bull
2000-05-12  0:00                     ` Gautier
2000-05-11  0:00                       ` Al Christians
2000-05-10  0:00             ` Robert A Duff
2000-05-10  0:00               ` Preben Randhol
2000-05-10  0:00                 ` Charles Hixson
2000-05-11  0:00                   ` Geoff Bull
2000-05-11  0:00                     ` Charles Hixson
2000-05-12  0:00                       ` Geoff Bull
2000-05-17  0:00               ` Robert I. Eachus
2000-05-19  0:00                 ` Geoff Bull
2000-05-19  0:00                   ` Robert I. Eachus [this message]
2000-05-21  0:00                     ` Robert Dewar
2000-05-21  0:00                   ` Robert Dewar
     [not found]                     ` <392869F0.D88F056A@acenet.com.au>
2000-05-22  0:00                       ` Tarjei Tj�stheim Jensen
2000-05-27  0:00                         ` Reinert Korsnes
2000-05-27  0:00                           ` Tarjei Tj�stheim Jensen
2000-06-03  0:00                       ` Robert I. Eachus
2000-05-10  0:00           ` C date package Ken Garlington
2000-05-10  0:00             ` Geoff Bull
2000-05-10  0:00           ` Geoff Bull
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox