comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: Re: Representation Clauses And Freezing
Date: 2000/07/24
Date: 2000-07-24T00:00:00+00:00	[thread overview]
Message-ID: <8lhjco$mq8$1@nnrp1.deja.com> (raw)
In-Reply-To: ujme5.27$Al5.45903@news.pacbell.net

In article <ujme5.27$Al5.45903@news.pacbell.net>,
  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.




  parent reply	other threads:[~2000-07-24  0:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-17  0:00 Representation Clauses And Freezing Marin D. Condic
2000-07-17  0:00 ` Stephen Leake
2000-07-20  0:00   ` Marin D. Condic
2000-07-20  0:00     ` Stephen Leake
2000-07-21  0:00       ` Marin D. Condic
2000-07-21  0:00         ` Stephen Leake
2000-07-21  0:00           ` Marin D. Condic
2000-07-21  0:00         ` Simon Wright
2000-07-22  0:00           ` Marin D. Condic
2000-07-22  0:00             ` tmoran
2000-07-22  0:00               ` Marin D. Condic
2000-07-24  0:00               ` Ted Dennison [this message]
2000-07-21  0:00     ` tmoran
2000-07-18  0:00 ` Tucker Taft
2000-07-18  0:00 ` Nicolas Brunot
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox