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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.67.6.202 with SMTP id cw10mr15803261pad.23.1446404011706; Sun, 01 Nov 2015 10:53:31 -0800 (PST) X-Received: by 10.182.53.133 with SMTP id b5mr177224obp.7.1446404011659; Sun, 01 Nov 2015 10:53:31 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!i2no2174524igv.0!news-out.google.com!z4ni43069ign.0!nntp.google.com!i2no2174513igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 1 Nov 2015 10:53:31 -0800 (PST) In-Reply-To: <86611l7fel.fsf@stephe-leake.org> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2001:7e8:d039:4f01:9dac:97d9:1ff6:6a9c; posting-account=sDyr7QoAAAA7hiaifqt-gaKY2K7OZ8RQ NNTP-Posting-Host: 2001:7e8:d039:4f01:9dac:97d9:1ff6:6a9c References: <86611l7fel.fsf@stephe-leake.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5cb53e97-658b-464e-b3e8-88d0d0c2cf17@googlegroups.com> Subject: Re: A few questions From: Laurent Injection-Date: Sun, 01 Nov 2015 18:53:31 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:28171 Date: 2015-11-01T10:53:31-08:00 List-Id: On Sunday, 1 November 2015 19:17:44 UTC+1, Stephen Leake wrote: > > I need a range of Dates. > > Why? > > What will that do for you that your current Date package will not do? > > Until we know that, it's hard to say what code you should implement. > > > Begin_Date: Dates.Object; > > End_Date: Dates.Object; > > Why isn't this enough for your needs? No because my package had nothing else than set/get the different components of Date and a constructor. and an IO package for formatting I have now added "+" (L: Date, R : Positive) return Date which should work the way I think it should. Perhaps . First need to test if the result is correct. Another day. > > subtype Period is range Begin_Date .. End_Date; > > What operations to do want to have for this type? Hm none. Just would need the possibility to use it in a loop for the 'Range. But hey I am a noob so I quite often asks silly questions :)