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: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Seeking for papers about tagged types vs access to subprograms Date: Mon, 13 May 2013 10:30:44 -0700 Organization: Also freenews.netfront.net; news.tornevall.net 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; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 13 May 2013 17:26:59 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="656ea2f23126f57fb36504d2d15a002c"; logging-data="23033"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6iUyNPtybc191/rTnvSoLQLj+AJxFnXE=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Cancel-Lock: sha1:hFrfkIYo37ViiuBg50/9KHigf30= Xref: news.eternal-september.org comp.lang.ada:15538 Date: 2013-05-13T10:30:44-07:00 List-Id: On 05/13/2013 06:15 AM, Robert A Duff wrote: > > Yes, I understood that. I just don't think "open/closed file" is > the best example. Maybe something like, you can't do the "land > aircraft" operation unless you're in the "landing gear down" state. Sure you can. It happens all the time. There are 2 kinds of pilots who fly retractable-gear airplanes: those who have made a gear-up landing, and those who will. > By the way, Text_IO has more design flaws than I can count without > taking off my shoes. ;-) 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. -- Jeff Carter "People called Romanes, they go the house?" Monty Python's Life of Brian 79