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 16:41:48 PST Path: supernews.google.com!sn-xit-02!supernews.com!easynews!news-out.usenetserver.com!wn3feed!worldnet.att.net!128.230.129.106!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:28:41 GMT Organization: Deja.com Message-ID: <94furj$c69$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: 24.20.66.39 X-Article-Creation-Date: Mon Jan 22 00:28:41 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:4286 Date: 2001-01-22T00:28:41+00:00 List-Id: In article , "DuckE" wrote: > > > After a little more reflection it occurs to me that what I really want is > for the format of data on a stream to be dependent on the stream, or at > least be capable of being dependent on the stream. Yes... > > 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. Certainly you can! You do it by creating a new type derived from Ada.Streams.Root_Stream_Type (or one of its descendants) and overriding its primitives (like Read and Write). > If I want this functionality I must resort to C++. > Ye gads! :-) :-) Mark Lundquist Rational Software Sent via Deja.com http://www.deja.com/