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.2 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, FROM_STARTS_WITH_NUMS autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1295f20108acc30c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Vinzent Hoefler" <0439279208b62c95f1880bf0f8776eeb@t-domaingrabbing.de> Newsgroups: comp.lang.ada Subject: Re: Ada.Directories.Copy_File behavior Date: Sun, 20 Feb 2011 21:25:46 +0100 Message-ID: References: <0856cce6-9ebd-4824-a443-537cd1d127a8@l18g2000yqm.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: individual.net 4QQZ1xhNnSy7iN10IJAtCgnXG+dUDrl+pMbAP9pu0+RuYCwvxt Cancel-Lock: sha1:6wEMTkGdTPVarmYWWwoACQdfYN0= User-Agent: Opera Mail/11.01 (Win32) Xref: g2news2.google.com comp.lang.ada:18468 Date: 2011-02-20T21:25:46+01:00 List-Id: wrote: >> > The Windows CopyFile function takes a BOOL parameter bFailIfExists, >> > so is it implementation-defined what Ada.Directories.Copy_File does? >> > That's not very satisfactory. >> >> But I think it's imp-def even without that BOOL. >> >> In practise how many OS are you going to support? You may find that > > No, it's how many *compilers* for a single OS are you going to support? Well, how many Ada05 compilers are there? And well, looking at GNAT's code, it seems, it overwrites any existing file, so assuming "if in doubt, GNAT is the ARM", Copy_File shall have overwriting semantics. ;) Vinzent. -- You know, we're sitting on four million pounds of fuel, one nuclear weapon, and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it? -- Rockhound, "Armageddon"