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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: Operating System differences and Ada OS independent programming Date: Wed, 23 Mar 2016 16:08:17 +0100 Organization: A noiseless patient Spider Message-ID: References: <56eff4a4$0$4238$e4fe514c@news.kpn.nl> Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 23 Mar 2016 15:05:06 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="b96887e80893c84a90c3007226ca0d1c"; logging-data="24872"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZIEyG7kj3xbnl0zBvSBa7cqLxjfFqrcA=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: Cancel-Lock: sha1:HP0i3rVw0a2f+S1e8x3gUeaysGY= Xref: news.eternal-september.org comp.lang.ada:29853 Date: 2016-03-23T16:08:17+01:00 List-Id: On 23.03.16 09:38, Dmitry A. Kazakov wrote: > For anything impossible under the given OS Use_Error is propagated. In some cases a substitution mechanism might work: If "E:\" is covered by some "multiple roots" type, and the filesystem is Unix style, the Use_Error could be staged, and conditional. The run-time support that establishes the type's associated behavior (or path mapping) would be configurable. The programmer specifies a mapping mechanism from the "multiple roots" object representing "E:\" to some other "multiple roots" object that can play the same role on his or her system. Provided, maybe, that the original object did not specifically use "root-ness", which could be reflected in some constant property preventing the above mentioned mapping. So, then, Use_Error would be raised either - if the mapping could not be performed because the target object would not represent "root-ness", - or if no mapping was provided by the programmer, - or if the mapping "tampers with file systems", - or if the run-time system does not support mapping.