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,c5f73eda096e667b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-07 18:11:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3CD87B38.D3DE1CC4@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Neat and tidy solution to following problem? References: <8IWB8.2994$0h6.128758@newsfep1-win.server.ntli.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 08 May 2002 01:11:36 GMT NNTP-Posting-Host: 63.184.20.222 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 1020820296 63.184.20.222 (Tue, 07 May 2002 18:11:36 PDT) NNTP-Posting-Date: Tue, 07 May 2002 18:11:36 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:23684 Date: 2002-05-08T01:11:36+00:00 List-Id: "chris.danx" wrote: > > In the example given previously, the function getWord is declared like this > > getWord :: String -> (String, String) > > This means it takes a string and returns a pair of strings as a tuple. If > you want to add all the words in the String to a data structure in another > function, you can use recursion. Somethings might just be neater if this > could be done without fussing with explicit* record types. In Ada every type must be explicitly declared before it can be used. There are no exceptions to this rule. So it might be "neat" or "keen" or even easier to hack in Ada if this weren't the case, but that doesn't change Ada. -- Jeff Carter "Hello! Smelly English K...niggets." Monty Python & the Holy Grail