comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: General circular buffer example not tied to any specific type
Date: Sun, 5 Jul 2020 15:25:35 +0200	[thread overview]
Message-ID: <rdskcf$ra$1@dont-email.me> (raw)
In-Reply-To: <ly3666e1at.fsf@pushface.org>

On 7/5/20 11:52 AM, Simon Wright wrote:
> Simon Wright <simon@pushface.org> writes:
> 
>> For the Size, see ARM 13.13.2(2).
> 
> 13.13.2(1.2), sorry

That only works for elementary types. For any type, a better approach is generic 
package Ada.Storage_IO, ARM A.9 
(http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-A-9.html).

-- 
Jeff Carter
"C++: The power, elegance and simplicity of a hand grenade."
Ole-Hjalmar Kristensen
90

  reply	other threads:[~2020-07-05 13:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-04 17:00 General circular buffer example not tied to any specific type Daniel
2020-07-04 17:25 ` Dmitry A. Kazakov
2020-07-05  9:37   ` Simon Wright
2020-07-05  9:52     ` Simon Wright
2020-07-05 13:25       ` Jeffrey R. Carter [this message]
2020-07-05 15:36         ` Simon Wright
2020-07-05 18:46           ` Dmitry A. Kazakov
2020-07-05 19:51             ` Simon Wright
2020-07-06  8:11         ` Simon Wright
2020-07-06  8:58           ` Jeffrey R. Carter
2020-07-06 10:34             ` Simon Wright
2020-07-06 11:07               ` Dmitry A. Kazakov
2020-09-03 10:31 ` riya patel
2020-09-24  4:10 ` nimaopatel121
2020-09-24  4:39   ` J-P. Rosen
2020-09-25 14:32 ` Simon Wright
replies disabled

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