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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a13657a6f67ac494 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-12 12:54:56 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!irazu.switch.ch!switch.ch!tiscali!newsfeed1.ip.tiscali.net!news.worldonline.be!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Simple library functions Date: 12 Feb 2004 21:54:07 +0100 Organization: Worldonline Belgium Sender: lbrenta@lbrenta Message-ID: References: <19401efb.0402121137.2a20b681@posting.google.com> NNTP-Posting-Host: ppp-62-235-79-142.tiscali.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.worldonline.be 1076619292 16866 62.235.79.142 (12 Feb 2004 20:54:52 GMT) X-Complaints-To: abuse@worldonline.be NNTP-Posting-Date: Thu, 12 Feb 2004 20:54:52 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:5500 Date: 2004-02-12T21:54:07+01:00 List-Id: scallassig@mailexpire.com (Harald Korneliussen) writes: > I have been trying to solve some programming excercises from > www.topcoder.com in Ada, just to compare it to Java and the other > popular languages. > > One problem I keep running into is the lack of common, useful > utilities in the libraries that come with Gnat & Ada. One thing is > that I had to write my own tokenizer. That gave me the opporunity to > emulate the String.split() method in newer versions of Java, OK*. But > now I have to do an even simpler task, converting a string of digits > to an integer, and as far as I can see there is no function for this > in the standard libraries!? Look at Integer'Value in the reference manual 3.5 (52). Example: N : Integer := Integer'Value ("42"); > I hear there is a new revision of Ada coming. I really, really hope > they adress the lack of a standard library of utillity packages > instead of adding new language features. The small size of the Ada standard library has been much debated here. This does not mean that there are no libraries at all; I encourage you to look at http://www.adaworld.com, http://www.adaic.com, http://www.adapower.com, and http://libre.act-europe.fr. These sites list several Ada libraries which you may find useful. > * Anyone want it? :-) If you write some useful utilities that you are willing to share, I think it would be a good idea to add them to one of these libraries and join in the development. As for your tokenizer, is it very different from OpenToken? -- Ludovic Brenta.