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.182.196.34 with SMTP id ij2mr15402615obc.24.1446385205442; Sun, 01 Nov 2015 05:40:05 -0800 (PST) X-Received: by 10.182.50.225 with SMTP id f1mr172882obo.11.1446385205407; Sun, 01 Nov 2015 05:40:05 -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!i2no2069014igv.0!news-out.google.com!fs1ni4820igb.0!nntp.google.com!i2no1403989igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 1 Nov 2015 05:40:05 -0800 (PST) In-Reply-To: <87wpu2dr90.fsf@adaheads.sparre-andersen.dk> 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: <87wpu2dr90.fsf@adaheads.sparre-andersen.dk> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8694efa7-abf4-4aea-a3b4-ea623d35a733@googlegroups.com> Subject: Re: A few questions From: Laurent Injection-Date: Sun, 01 Nov 2015 13:40:05 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:28159 Date: 2015-11-01T05:40:05-08:00 List-Id: On Sunday, 1 November 2015 10:05:17 UTC+1, Jacob Sparre Andersen wrote: > As a type? > > subtype Period is Date > with Dynamic_Predicate => Begin_Date <= Period and Period <= End_Date; And that would allow me to use it like this: for I in Period'Range loop... Feels to much like magic that it could actually work :) > As an object? > > type Dates is array (Positive range <>) of Date; > Period : constant Dates := (Begin_Date, > Begin_Date + 1 * Days, > Begin_Date + 2 * Days, > ... > End_Date); > > As an iterator? Don't think that is necessary. Could still try to feed it to my self rolled linked list package to find out if it is able to store the dates. Thanks