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-21 18:01:00 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!newsfeed.mathworks.com!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: Mon, 22 Jan 2001 01:51:39 GMT Organization: Deja.com Message-ID: <94g3n9$g2p$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> <94co6t$v27$1@nnrp1.deja.com> <94f1a8$k9r$1@nnrp1.deja.com> NNTP-Posting-Host: 205.232.38.14 X-Article-Creation-Date: Mon Jan 22 01:51:39 2001 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; U) X-Http-Proxy: 1.0 x65.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:4289 Date: 2001-01-22T01:51:39+00:00 List-Id: 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). To what feature are you referring in C++ here that will help you solve this feature. I am unaware of any feature in standard C++ that would provide any automatic solution, but I certainly don't know all of C++ :-) Sent via Deja.com http://www.deja.com/