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.157.34.22 with SMTP id o22mr13182352ota.106.1483204484689; Sat, 31 Dec 2016 09:14:44 -0800 (PST) X-Received: by 10.157.37.151 with SMTP id q23mr2170923ota.4.1483204484660; Sat, 31 Dec 2016 09:14:44 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!75no5285170ite.0!news-out.google.com!g131ni1494itg.0!nntp.google.com!75no5285168ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 31 Dec 2016 09:14:44 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:18f:900:f900:453d:87a5:de7c:1786; posting-account=3pYsyQoAAACcI-ym7XtMOI2PDU8gRZS5 NNTP-Posting-Host: 2601:18f:900:f900:453d:87a5:de7c:1786 References: <38965b21-5c90-442f-8ee8-cebd8e2c7108@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <19d97016-36fa-4e23-a19b-15ad28818551@googlegroups.com> Subject: Re: Introductory Ada Programming Book From: Andrew Shvets Injection-Date: Sat, 31 Dec 2016 17:14:44 +0000 Content-Type: text/plain; charset=UTF-8 Xref: news.eternal-september.org comp.lang.ada:32979 Date: 2016-12-31T09:14:44-08:00 List-Id: On Saturday, December 31, 2016 at 10:10:25 AM UTC-5, Dmitry A. Kazakov wrote: > On 2016-12-31 15:26, Lucretia wrote: > > > Ada basically forces you to think about your data, the way other > > languages should, but don't. Data has ranges of allowable values and the > > compiler will enforce their use. > > It is called type or datatype. Data is a value of some type associated > with some problem space meaning, like employee's age is 38. > > Ada does not force you, it rather offers richer than other languages > means to define types more suitable to annotate and handle data. You > still can be a real C programmer in Ada by using Integer or > Integer_Address for just everything. > > Happy New Year! > > -- > Regards, > Dmitry A. Kazakov > http://www.dmitry-kazakov.de Exactly! This is what I love so much about this language! It has so many benefits, from security to software reliability to correctness of execution. This is such a powerful portion of the language that nothing else quite compares. I covered this topic in two chapters. One dealt with the primitives that are already baked in the language and the second one dealt with the custom types that you mention.