From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: In memory Stream Date: Wed, 21 Feb 2024 08:43:13 +0100 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 21 Feb 2024 07:43:13 -0000 (UTC) Injection-Info: dont-email.me; posting-host="a067fd54afc5988aee75e34907f8d21a"; logging-data="3165386"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Op4uzn4h6o+fgBW5w+HSOzziHjsbPnpc=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:pus5gPhiy+GgL4rtyjn6qc3Ksw0= Content-Language: en-US In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:66115 List-Id: On 2024-02-20 23:32, Lawrence D'Oliveiro wrote: > On Tue, 20 Feb 2024 21:45:46 +0100, Dmitry A. Kazakov wrote: > >> The burden of checks is moved to the application, the format is same. > > Isn’t that how all formats are implemented? There is a difference in semantics of checks. The checks below and above the OSI level of the format are outside the scope of format. One thing is to check a string against a database of client names and another to check its length or validity of UTF-8 encoding. Do you check ASCII characters? No, because they are densely encoded. If error-correction etc is needed it is added below. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de