comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R.Carter" <spam.jrcarter.not@spam.acm.org.not>
Subject: Re: Sockets, Streams, and Element_Arrays: Much confusion
Date: Sat, 31 Dec 2022 16:18:50 +0100	[thread overview]
Message-ID: <topjsr$105qe$1@dont-email.me> (raw)
In-Reply-To: <2c8f31a2-a39a-cb31-a764-28e0ac84ea1a@gmail.com>

On 2022-12-31 14:50, Mark Gardner wrote:
> 
> According to RM 13.13.1, "Stream_Element is mod implementation-defined" which to 
> me says there is no guarantee that they will be octets, unless this is specified 
> elsewhere?

The ARM has always tried to ensure that the language could be implemented on any 
kind of processor. Thus you have implementation-defined separate definitions of 
Storage_Element and Stream_Element, which need not be the same, and no guarantee 
that Interfaces contains declarations of Integer_8 or Unsigned_8.

But these days almost everything is byte oriented, so unless you need what 
you're writing to work on some unusual H/W, you can presume that both of these 
are bytes, and that Interfaces contains those declarations.

-- 
Jeff Carter
"My legs are gray, my ears are gnarled, my eyes are old and bent."
Monty Python's Life of Brian
81

  parent reply	other threads:[~2022-12-31 15:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-31 12:11 Sockets, Streams, and Element_Arrays: Much confusion Mark Gardner
2022-12-31 13:11 ` Dmitry A. Kazakov
2022-12-31 13:50   ` Mark Gardner
2022-12-31 14:16     ` Dmitry A. Kazakov
2022-12-31 15:18     ` Jeffrey R.Carter [this message]
     [not found]   ` <de32dc82-ba42-4b27-a140-ddab9587219fn@googlegroups.com>
2022-12-31 22:49     ` Jeffrey R.Carter
2022-12-31 22:55     ` Dmitry A. Kazakov
2022-12-31 17:39 ` Simon Wright
2022-12-31 19:36   ` Mark Gardner
2022-12-31 20:16     ` Dmitry A. Kazakov
2022-12-31 23:41       ` Simon Wright
2023-01-01  9:48         ` Dmitry A. Kazakov
2023-01-01 16:11           ` Simon Wright
2023-01-01 16:17         ` Niklas Holsti
2023-01-05  7:55 ` Daniel Norte de Moraes
2023-01-05 10:35   ` Dmitry A. Kazakov
replies disabled

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