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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3689d3c938c589e5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-22 10:41:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Directory listings and path names Date: 22 Jan 2002 12:40:03 -0600 Organization: LJK Software Message-ID: References: <6Kh38.35040$YM1.1631665254@newssvr21.news.prodigy.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1011724804 8443 192.135.80.34 (22 Jan 2002 18:40:04 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Tue, 22 Jan 2002 18:40:04 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:19192 Date: 2002-01-22T12:40:03-06:00 List-Id: In article <6Kh38.35040$YM1.1631665254@newssvr21.news.prodigy.com>, tmoran@acm.org writes: >>Perhaps a good compromise would be for all the Ada >>vendors to support the Florist POSIX bindings, > Do people prefer the POSIX directory iterator style > generic > with procedure Action(...) > procedure For_Each(Wild_Card_Name_String : in String;...) > that iterates through the directory calling Action on each file, or > do people prefer the IO-ish > procedure Open > procedure Get_Next > procedure Close I find the second style better when I am doing uncommon things, such as looking for all files of which there are fewer than 3 versions.