From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Using Generic Pasckages
Date: Sat, 11 Apr 2020 16:15:58 +0200
Date: 2020-04-11T16:15:58+02:00 [thread overview]
Message-ID: <r6sjeu$jci$1@dont-email.me> (raw)
In-Reply-To: <b7de6f61-c6d1-1f33-f99c-90994971c4ff@planet.nl>
On 4/11/20 3:16 PM, ldries46 wrote:
> I already have a generic package for such a buffer (instantiations can be made
> for all kind of types(f.i integers, unbounded_Strings). Do it is logical that I
> want to use that package with two instantiations for the same type.
If your generic requires 2 instantiations to have 2 buffers, then it's an
Abstract State Machine (ASM). Another approach is an Abstract Data Type (ADT).
With an ADT you'd have a single instantiation and 2 objects of the ADT's type.
--
Jeff Carter
"Frankie Wolf, wanted by Federal authorities for
dancing with a mailman."
Take the Money and Run
143
prev parent reply other threads:[~2020-04-11 14:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-09 8:40 Using Generic Pasckages ldries46
2020-04-09 8:57 ` Dmitry A. Kazakov
2020-04-09 10:05 ` ldries46
2020-04-09 11:23 ` Dmitry A. Kazakov
2020-04-09 15:38 ` AdaMagica
2020-04-09 18:23 ` Simon Wright
2020-04-09 20:45 ` Jere
2020-04-10 16:34 ` Stephen Leake
2020-04-11 13:16 ` ldries46
2020-04-11 14:15 ` Jeffrey R. Carter [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox