From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Inheritance with Ada types
Date: Tue, 09 Feb 2010 10:08:40 -0500
Date: 2010-02-09T10:08:40-05:00 [thread overview]
Message-ID: <wccr5oumop3.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: ad9aca45-33dc-4765-a998-44a6b57dbe50@q16g2000yqq.googlegroups.com
Bryan <brobinson.eng@gmail.com> writes:
> package Parent is
> type Parent is abstract tagged private;
Using the same name for the package and the type will lead to confusion.
A common convention is to use a plural for the package, and a singular
for the main type in that package. "Parent" is a fairly meaningless
name, but in a real program you'd have something like:
package Widgets is
type Widget is ...
- Bob
next prev parent reply other threads:[~2010-02-09 15:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-09 2:16 Inheritance with Ada types Bryan
2010-02-09 2:57 ` Hibou57 (Yannick Duchêne)
2010-02-09 9:11 ` Jean-Pierre Rosen
2010-02-09 10:19 ` Hibou57 (Yannick Duchêne)
2010-02-09 11:23 ` Jean-Pierre Rosen
2010-02-10 2:47 ` Randy Brukardt
2010-02-09 10:22 ` Hibou57 (Yannick Duchêne)
2010-02-09 15:08 ` Robert A Duff [this message]
2010-02-09 23:39 ` Bryan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox