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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f43e6,37e6dbf5e31f6da0 X-Google-Attributes: gidf43e6,public X-Google-Thread: 1108a1,37e6dbf5e31f6da0 X-Google-Attributes: gid1108a1,public X-Google-Thread: ff6c8,37e6dbf5e31f6da0 X-Google-Attributes: gidff6c8,public X-Google-Thread: 103376,37e6dbf5e31f6da0 X-Google-Attributes: gid103376,public X-Google-Thread: 10db24,37e6dbf5e31f6da0 X-Google-Attributes: gid10db24,public From: tmoran@bix.com Subject: Re: Software Engineering News Brief Date: 1996/11/09 Message-ID: <561dg9$h2g@news2.delphi.com>#1/1 X-Deja-AN: 195453951 organization: Delphi Internet Services Corporation newsgroups: comp.lang.ada,comp.sw.components,comp.object,comp.software-eng,comp.edu Date: 1996-11-09T00:00:00+00:00 List-Id: >" 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.)