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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,2e66fe8b30e3ee2c X-Google-Attributes: gid103376,public From: Marin David Condic Subject: Re: S'Write and How To Count Bytes Date: 2000/10/02 Message-ID: <39D8A867.ADC8DDD@acm.org>#1/1 X-Deja-AN: 676657599 Content-Transfer-Encoding: 8bit References: <39D6891A.7DC448B6@acm.org> <8r9uf5$ocl@newsserv.vs.dasa.de> X-Accept-Language: en X-Server-Date: 2 Oct 2000 15:23:14 GMT Content-Type: text/plain; charset=iso-8859-1 Organization: Quadrus Corporation Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-10-02T15:23:14+00:00 List-Id: "Dr. Joachim Schr�er" wrote: > The 'read, 'write attributes are for constrained types. > For unconstrained types (including tagged types/classwide types) > there exist the 'input, 'output attributes. Note, that 'input > is a function. If you want to overwrite 'input, 'output you just > have to overwrite 'read, 'write cause they are used by the former. I've used the 'Input and 'Output in the process of saving and reloading things from a file. It works nicely. However, in this case, I can't have all the dope information in the output. See some of the other posts in this thread where I explain it in a little more detail. Also, even with the 'Input and 'Output, you don't seem to have any means of determining in advance how big a stream of bytes you will produce from the operation. I don't see an obvious answer and perhaps no good one exists. Probably you would have to convert the data to get the size, then convert it again to get the size into the output. MDC -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "Giving money and power to Government is like giving whiskey and car keys to teenage boys." -- P. J. O'Rourke ======================================================================