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,2d7ec12dd7db366 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-28 11:39:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!chcgil2-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: How to rename a file? Date: 28 Sep 2001 13:39:32 -0500 Organization: LJK Software Message-ID: References: NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1001702374 632 192.135.80.34 (28 Sep 2001 18:39:34 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Fri, 28 Sep 2001 18:39:34 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:13486 Date: 2001-09-28T13:39:32-05:00 List-Id: In article , Pascal Obry writes: > > "David Botton" writes: > >> On Win32 if you wish to be cross compiler (this also demonstrates why thin >> bindings are mostly a waste of time for Ada): >> >> First the ugly method: >> > > (code removed) > >> >> Now the cool method: >> > > (code removed) > > Now the really cool method :) > > POSIX.Files.Rename ("myoldfile", "whateveristhenewname"); > > All the ugly binding to the OS has been done by the POSIX bindings > developers... Only if you are satisfied with least-common-denominator semantics, avoiding OS-specific features.