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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,65f09e2d2d4dad56 X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Representation Clauses And Freezing Date: 2000/07/24 Message-ID: <8lhjco$mq8$1@nnrp1.deja.com>#1/1 X-Deja-AN: 650126597 References: <3979C22C.627F3C89@acm.com> X-Http-Proxy: 1.0 x66.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Jul 24 14:21:16 2000 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I) Date: 2000-07-24T00:00:00+00:00 List-Id: In article , tmoran@bix.com wrote: > >operations are class-wide. No matter how you extend the message, the > >base class needs to be able to determine where the "real" data is in the > >record, how big it is, how to checksum it, how to interpret it as raw > >bytes, etc, etc. In a weakly typed language, you could do this by > > You can really do a lot with Streams. You can of course define a > 'Write to one child of Root_Stream_Type that puts the bytes of the > data object into a Stream_Element_Array. But a different child of > Root_Stream_Type could instead put a kind_of_record_indicator, or a > checksum, or a length, or even an address into its resulting To do anything with streams in an enviroment like this (one where you care what the exact representation of the output is) you need to make your own 'Write for each and every type you or anyone else will ever want to write to the stream. But if its only the one tagged type, then that's not much of a problem. -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/ Before you buy.