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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,aa8786249f0c751f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.sol.net!posts.news.twtelecom.net!nnrp2.twtelecom.net!not-for-mail Date: Thu, 30 Jun 2005 11:01:38 -0400 From: Matthew Heaney Organization: On2 Technologies, Inc User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: How difficult is ada to learn? References: <1120092264.749327.16210@z14g2000cwz.googlegroups.com> <1120141150.107320.139080@f14g2000cwb.googlegroups.com> In-Reply-To: <1120141150.107320.139080@f14g2000cwb.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <42c40952$0$32193$39cecf19@news.twtelecom.net> NNTP-Posting-Date: 30 Jun 2005 15:01:38 GMT NNTP-Posting-Host: 1a03501f.news.twtelecom.net X-Trace: DXC=@Sn1finP8`_?R0fM_WmQ_VC_A=>8kQj6]=_1NR_H?JP]MOnPQP8MggTdYZAA8S: Gene wrote: > > Most people who start with Borland Pascal miss the built-in set and > string data types. Ada gets the same effects with packages, but the > syntax is far less elegant and readable. Thinking about it some more, I forgot that Ada does built-in support for sets a la Pascal, in the form of arrays whose component subtype is Boolean. There are predefined operations for and'ing, or'ing, etc. Of course, sets of this type have the same constraints as Pascal, meaning that the element type must be discrete and constrained, e.g. subtypes of Character or Integer, etc. The languages aren't much different here (as you might expect, given Ada's pedigree).