comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@bix.com
Subject: Re: Software Engineering News Brief
Date: 1996/11/09
Date: 1996-11-09T00:00:00+00:00	[thread overview]
Message-ID: <561dg9$h2g@news2.delphi.com> (raw)


>"   I just looked this up and it needs correction: the system should be
>able to raise an exception when the year is outside 1901 through 2099,
>or the month is outside 1 through 12, etc.  If the vendor wants to allow
>the programmer to relax these rules, he'll have to allow the programmer
>to do it via a pragma, compilation time switch, or some such thing, and,
>of course, the vendor should then document just what his compiler allows."
>
>However, extending the range of Year_Number with a switch would be a highly
>inappropriate language extension in my view. It would be much better to
>provide an alternative package, e.g. Extended_Calendar, which looked similar
>to Calendar, but provided an extended period of coverage.
  Extending the range of Year_Number with a compiler switch might or might
not be a good idea, but turning off constraint checking either locally
on calls to Split, Time_Of, "+", "-" etc with a Pragma, or globally with
a compiler switch, is what I had in mind.  (Obviously Split et al must be
coded to properly handle such shenanigans, but we're assuming here that
a vendor is specifically trying to allow extension of the usual range.)




             reply	other threads:[~1996-11-09  0:00 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-09  0:00 tmoran [this message]
1996-11-09  0:00 ` Software Engineering News Brief Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1996-11-12  0:00 Marin David Condic, 561.796.8997, M/S 731-93
1996-11-07  0:00 tmoran
1996-11-07  0:00 ` Robert Dewar
     [not found] <55t882$9m@news2.delphi.com>
1996-11-07  0:00 ` Robert Dewar
1996-11-05  0:00 tmoran
1996-11-05  0:00 ` jimgregg
1996-11-05  0:00 ` Robert Dewar
1996-11-07  0:00   ` Stefan.Landherr
1996-11-11  0:00     ` Robert Dewar
1996-11-06  0:00 ` Tom Reid
1996-11-07  0:00   ` Norman H. Cohen
1996-11-07  0:00   ` Robert Dewar
1996-11-08  0:00   ` Robert I. Eachus
1996-11-09  0:00     ` Paul Eggert
1996-11-11  0:00       ` Norman H. Cohen
1996-11-16  0:00       ` Robert Dewar
1996-11-17  0:00         ` Fergus Henderson
1996-11-17  0:00           ` Robert Dewar
1996-11-17  0:00             ` Larry J. Elmore
1996-11-17  0:00               ` Robert Dewar
1996-11-18  0:00                 ` Keith Thompson
1996-11-18  0:00               ` Larry Kilgallen
1996-11-18  0:00                 ` Robert Rodgers
1996-11-18  0:00               ` Norman H. Cohen
1996-11-19  0:00                 ` Frank Manning
1996-11-18  0:00             ` Dave Sparks
1996-11-18  0:00             ` Mark A Biggar
1996-11-24  0:00             ` Paul Eggert
1996-11-24  0:00               ` Robert Dewar
1996-11-25  0:00                 ` Paul Eggert
1996-11-18  0:00         ` Matt Kennel
1996-11-19  0:00           ` Martin Tom Brown
1996-11-19  0:00           ` Keith Thompson
1996-11-21  0:00   ` Robert I. Eachus
1996-11-01  0:00 Software Engineering News
1996-11-01  0:00 ` Adam Beneschan
1996-11-05  0:00 ` David Bradley
1996-11-05  0:00   ` Larry Kilgallen
1996-11-05  0:00     ` Steve Jones - JON
1996-11-06  0:00   ` Ed Falis
1996-11-06  0:00 ` John Cosby
     [not found] ` <55rmsc$2ee$1@shade.twinsun.com>
1996-11-07  0:00   ` caip.rutgers.edu!halasz
replies disabled

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