comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Lundin" <b.f.lundin@gmail.com>
Subject: Re: Curiosity in generic package instantiation
Date: Wed, 20 Aug 2014 09:18:22 +0200
Date: 2014-08-20T09:18:22+02:00	[thread overview]
Message-ID: <lt1i3f$241$1@dont-email.me> (raw)
In-Reply-To: <lt0itn$1g5$1@dont-email.me>

On 2014-08-20 00:26, GianLuigi Piacentini wrote:
> if I understand well, this means that the Ada.Containers.Doubly_Linked_Lists 
> package is instantiated using Example_Type, and the instantiated list name 
> is Example_Pkg.List.

Almost, but not quite.
The list is called 'List' and is of _type_ Example_Pkg.List

I am one of hem who prefers tucking '_Type' in the end of type names
just to avoid this sort of confusion.
So if I wrote the package, the type would have been called

Example_Pkg.List_Type


--
Björn

      parent reply	other threads:[~2014-08-20  7:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-19 22:26 Curiosity in generic package instantiation GianLuigi Piacentini
2014-08-19 23:16 ` Adam Beneschan
2014-08-20  8:56   ` Mark Lorenzen
2014-08-21 22:32     ` Randy Brukardt
2014-08-21 22:39   ` Randy Brukardt
2014-08-20  7:18 ` Björn Lundin [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