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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Seeking for papers about tagged types vs access to subprograms Date: Mon, 13 May 2013 20:01:52 +0200 Organization: A noiseless patient Spider Message-ID: References: <1bfhq7jo34xpi.p8n2vq6yjsea.dlg@40tude.net> <12gn9wvv1gwfk.10ikfju4rzmnj.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 13 May 2013 17:58:02 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="2b3884a634d8f846e0712b4e3a92507a"; logging-data="4112"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+b8Tw98T1Ocytkc3HTFuQG" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: Cancel-Lock: sha1:BmmLKFqqXcmxCapzdfbVXy8wIbs= X-Enigmail-Version: 1.5.1 Xref: news.eternal-september.org comp.lang.ada:15539 Date: 2013-05-13T20:01:52+02:00 List-Id: Le 13/05/2013 19:30, Jeffrey Carter a écrit : > All the file handling seems poorly designed. I would only have 1 file > type (or a few, for input, output, and input-output files), for example, > with different levels of operations on them. It seems ridiculous to have > different File_Type's declared for Stream, Direct, and Text access to > files. Because you are used to poor operating systems like Unix and Windows, where files are simply a raw bag of bytes. In the old times, when people still knew how to write OSes (VMS...), you had various kinds of files that were managed at OS level. A sequential file was the logical mapping for a tape, and a direct file for a disc. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr