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,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-21 16:30:17 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: mark_lundquist@my-deja.com Newsgroups: comp.lang.ada Subject: Re: How can I avoid Using a Semaphore? Date: Mon, 22 Jan 2001 00:16:07 GMT Organization: Deja.com Message-ID: <94fu43$bl2$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: 24.20.66.39 X-Article-Creation-Date: Mon Jan 22 00:16:07 2001 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT; MSOCD) X-Http-Proxy: 1.1 x72.deja.com:80 (Squid/1.1.22) for client 24.20.66.39 X-MyDeja-Info: XMYDJUIDmark_lundquist Xref: supernews.google.com comp.lang.ada:4285 Date: 2001-01-22T00:16:07+00:00 List-Id: > 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. Why don't you just derive from the predefined type, then override the stream attributes on your derived type? That doesn't seem like a huge inconvenience... OTOH, it seems like Ada is helping, not hurting, by supplying predefined implementations of those attributes for predefined types (for when you *don't* care how they are implemented!) Maybe I'm missing your point when you say this is a weak point...? If so, try again and I'll try to follow :-) Said another way, if you say you want different stream I/O methods for Integer than the predefined ones, what you really mean is that you don't want an Integer! :-) What you want is something that is just like an Integer but has different I/O methods. Mark Lundquist Rational Software Sent via Deja.com http://www.deja.com/