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,LOTS_OF_MONEY autolearn=ham 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-22 18:36:44 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!cyclone-pass-sjo.usenetserver.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.sttls1.wa.home.com.POSTED!not-for-mail From: "DuckE" Newsgroups: comp.lang.ada 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> <94co6t$v27$1@nnrp1.deja.com> <94f1a8$k9r$1@nnrp1.deja.com> <94g3n9$g2p$1@nnrp1.deja.com> Subject: Re: How can I avoid Using a Semaphore? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <%66b6.297876$U46.9525314@news1.sttls1.wa.home.com> Date: Tue, 23 Jan 2001 02:36:43 GMT NNTP-Posting-Host: 24.6.221.63 X-Complaints-To: abuse@home.net X-Trace: news1.sttls1.wa.home.com 980217403 24.6.221.63 (Mon, 22 Jan 2001 18:36:43 PST) NNTP-Posting-Date: Mon, 22 Jan 2001 18:36:43 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: supernews.google.com comp.lang.ada:4348 Date: 2001-01-23T02:36:43+00:00 List-Id: "Robert Dewar" wrote in message news:94g3n9$g2p$1@nnrp1.deja.com... > In article , > "DuckE" wrote: > > For example, within one application I may want to stream > > information to a network in big endian format and stream > > information to files in little endian format. From what I > > understand (I may certainly be wrong) I cannot do this in > > Ada. If I want this functionality I must resort to C++. > > Sure you can do this in Ada, just define two types (use > derived types if you want to be able to convert between them) > and specify different stream routines for the two types (or > sets of types). I stand corrected. I see that I can derive different types from Root_Stream_Type that permit the different behavior. But... I still think that the inability to define the ordering for built in types is a limitation. If this limitation were not present then a special version of library would not be required for GLADE. SteveD