comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Instantiations of a generic with often encountered arguments
Date: Mon, 27 Nov 2017 08:00:28 +0000
Date: 2017-11-27T08:00:28+00:00	[thread overview]
Message-ID: <lypo845exv.fsf@pushface.org> (raw)
In-Reply-To: ovfrna$1hkd$1@gioia.aioe.org

Victor Porton <porton@narod.ru> writes:
> Dmitry A. Kazakov wrote:
>
>> On 2017-11-26 01:04, Victor Porton wrote:
>>> Is it a good practice to declare "centralized" (that is in the same
>>> package as a generic packages is defined in, or in a child unit)
>>> instantiations of a generic package with common (that is often
>>> encountered, such as Integer, String, etc.) generic parameters?
>> 
>> Yes, Ada library does so for standard types.
>
> Where?!

e.g.

   with Ada.Numerics.Generic_Elementary_Functions;

   package Ada.Numerics.Elementary_Functions is
     new Ada.Numerics.Generic_Elementary_Functions (Float);

   pragma Pure (Elementary_Functions);

  reply	other threads:[~2017-11-27  8:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-26  0:04 Instantiations of a generic with often encountered arguments Victor Porton
2017-11-26  2:24 ` gautier_niouzes
2017-11-26  8:52 ` Dmitry A. Kazakov
2017-11-27  2:02   ` Victor Porton
2017-11-27  8:00     ` Simon Wright [this message]
2017-11-27  8:41     ` Dmitry A. Kazakov
2017-11-27 16:05     ` 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