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.7 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6f69b1cf0f02b9ac X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-20 11:30:07 PST Path: supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!xfer13.netnews.com!netnews.com!newsfeed.skycache.com!Cidera!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Robert Dewar Newsgroups: comp.lang.ada Subject: Re: How can I avoid Using a Semaphore? Date: Sat, 20 Jan 2001 19:16:51 GMT Organization: Deja.com Message-ID: <94co6t$v27$1@nnrp1.deja.com> References: <93ti8b$bjpps$1@ID-25716.news.dfncis.de> <9BP86.270637$U46.8654942@news1.sttls1.wa.home.com> <94563n$cb6kp$1@ID-25716.news.dfncis.de> <0Cka6.290338$U46.9207275@news1.sttls1.wa.home.com> NNTP-Posting-Host: 205.232.38.14 X-Article-Creation-Date: Sat Jan 20 19:16:51 2001 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; U) X-Http-Proxy: 1.0 x58.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 X-MyDeja-Info: XMYDJUIDrobert_dewar Xref: supernews.google.com comp.lang.ada:4244 Date: 2001-01-20T19:16:51+00:00 List-Id: In article <0Cka6.290338$U46.9207275@news1.sttls1.wa.home.com>, "DuckE" wrote: > In my opinion this is one of the weak points of Ada 95. It > would have been better to not have the 'input and 'output > pre-defined for built in types (as a part of the language) > but to include a package for defining these > attributes. That way an arbitrary representation of built in > types could be used with streams when desired. I don't see your point here. Surely you are not arguing in favor of REQUIRING people to define their own stream attributes for types, that would be a huge pain for the most common use of stream attributes. There are two possibilities 1. You want to control stream behavior on a type by type basis. This you can do perfectly fine, by just avoiding built in types like Integer, which is good practice anyway, and then define the stream attributes to work however you want. 2. You want to control stream attributes globally (as is permitted in GNAT by replacing the System.Stream_Attributes unit), but you seem to say in the same message that you do NOT like the fact that in GNAT this approach results in the default routines applying to everything. It really seems like Ada 95 does EXACTLY the right think in the terms you have layed out here, you will have to be a lot clearer in making your acase that something is missing. Perhaps you can give at least a sketch of what you would like to see. >From where I sit, it seems like your problem is reasonable, and easily addressed with the current language features, and i can't see any addition to these features which would be helpful in this particular case. Sent via Deja.com http://www.deja.com/