comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Visibility issue
Date: Fri, 18 Sep 2020 09:05:37 +0100	[thread overview]
Message-ID: <lybli31pda.fsf@pushface.org> (raw)
In-Reply-To: a6a6053d-7ed9-47fa-a021-00bee31df07an@googlegroups.com

Daniel <danielnorberto@gmail.com> writes:

> ok Lets try to fit this requirement:
>>"There will be one or more internal packages not visible to users
>> where information is created. Preferably not in API hierarchy"
> Let's ignore for now "why" this requirement and how reasonable is
> it. For example lets think for that the information comes from a data
> link implemented in other packages different to API.

I can't ignore this "requirement" (well, I can ignore it in practice,
because it's just an intellectual puzzle that someone (an educator?) has
dreamt up).

A customer who says "we would give preference to Ada-based solutions,
because we believe they will be better" is being reasonable.

Of course, it may be that you have a customer who knows how to do this
in C++, and is challenging you to replicate that solution in Ada.

> In your example, all data is generated and processed within API
> packages, but the requirement obligates the data generated outside
> have to be send to users through API elements. (API just process it,
> but not generate it)

Come on, it's only a toy example! The private child packages can do
anything that's needed, communicate with databases,, AI, ...

And, to reiterate what Dmitry says, (a) private child packages are *not*
part of the API, (b) my point in using them was to show that they are
the way to get access to the private parts of the public API.

  parent reply	other threads:[~2020-09-18  8:05 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-11 10:37 Visibility issue Daniel
2020-09-11 11:51 ` Maxim Reznik
2020-09-11 20:11   ` Daniel
2020-09-11 14:23 ` Jeffrey R. Carter
2020-09-11 20:17   ` Daniel
2020-09-11 22:36     ` Jeffrey R. Carter
2020-09-14 10:47       ` Daniel
2020-09-14 16:10         ` Jeffrey R. Carter
2020-09-15 19:11           ` Daniel
2020-09-15 20:03             ` Jeffrey R. Carter
2020-09-11 21:05 ` Dmitry A. Kazakov
2020-09-14 11:33   ` Daniel
2020-09-14 14:42     ` Dmitry A. Kazakov
2020-09-15 19:35       ` Daniel
2020-09-16  7:14         ` Dmitry A. Kazakov
2020-09-16 10:23           ` Daniel
2020-09-16 10:58             ` Dmitry A. Kazakov
2020-09-16 14:35               ` Daniel
2020-09-16 14:49                 ` Jeffrey R. Carter
2020-09-16 15:05                 ` Dmitry A. Kazakov
2020-09-16 20:09                   ` Daniel
2020-09-16 21:48                     ` Simon Wright
2020-09-17 13:31                       ` Daniel
2020-09-17 15:00                         ` Dmitry A. Kazakov
2020-09-17 15:32                           ` Daniel
2020-09-17 16:47                             ` Dmitry A. Kazakov
2020-09-18  8:05                         ` Simon Wright [this message]
2020-09-14 16:18 ` Simon Wright
2020-09-17 15:58 ` Jere
2020-09-17 16:10 ` Jere
2020-09-18  8:08   ` Simon Wright
2020-09-17 21:47 ` Shark8
replies disabled

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