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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Online conceptual/tutorial material for Ada, was: Re: specification file ads problem Date: Sun, 5 Oct 2014 17:06:11 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <831a97d3-fa0b-49d9-980b-46e7eb12c1ee@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Sun, 5 Oct 2014 17:06:11 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="624cf02903ec21dd95fda0499934caa0"; logging-data="19752"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6nrr/UlPjFufbqIdFJzPxWSIRgl6afRs=" User-Agent: slrn/0.9.9p1 (Linux) Cancel-Lock: sha1:sZ8kqja0q5mPNPtR399mdJBOfbg= Xref: news.eternal-september.org comp.lang.ada:22107 Date: 2014-10-05T17:06:11+00:00 List-Id: On 2014-10-05, Simon Wright wrote: > Stribor40 writes: > >> generic >> type myType is array (1 ..N-1) of String (1..N); >> N : Integer; >> >> package myPackage is >> function tt (a : in String) return myType; >> end Neighbours; > > Try > > generic > N : Integer; > package myPackage is > type myType is array (1 ..N-1) of String (1..N); > function tt (a : in String) return myType; > end myPackage; At this point, I wonder if there are some good online tutorials which cover the basic Ada concepts which we could point Stribor40 to ? I'm thinking maybe something which _isn't_ a full book length but manages to cover the basic Ada concepts in a coherent manner and links them all together. The kind of thing I'm thinking of is maybe something like Ada Distilled. Any comments ? Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world