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!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: why access parameter in stream attributes to begin with, instead of in or in/out ? Date: Mon, 11 Jun 2018 18:17:16 -0500 Organization: JSA Research & Innovation Message-ID: References: Injection-Date: Mon, 11 Jun 2018 23:17:16 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="20674"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:53057 Date: 2018-06-11T18:17:16-05:00 List-Id: "Shark8" wrote in message news:cb1b3f8b-bf3b-4768-99af-5575a55cf682@googlegroups.com... > On Monday, June 11, 2018 at 3:49:28 PM UTC-6, Mehdi Saada wrote: >> Hi. >> >> I wondered why in Ichibiah's design, in the beginning, stream have been >> made to work with access types/access parameters ? > Hard to say; his design [Ada83] didn't have streams. Right, streams were an Ada 95 feature. >> I could have imagined that the attributes would work with a in/out stream >> parameter, and stream(blabla) would give an object of stream type. >> I don't know if storing streams' access values for later use is common, >> one would just have to add .all when appropriate... > Good questions, I want to say it's not common to pop access-type via > streams, but maybe I'm just unadventurous. Ada 83/95/2005 do not allow functions to have parameters that are out or in out. "access" was (mistakenly) thought to be a work-around for that. Streams, being an Ada 95 feature, used that work-around. It used it consistently, I suppose so that all of the stream attributes would work the same (it would be weird for Input and Read to work differently - remember, Input is a function and has to be one since the result in unconstrained). Randy.