comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@world.std.com>
Subject: Re: private properties of tagged records
Date: Sat, 9 Jun 2001 17:41:08 GMT
Date: 2001-06-09T17:41:08+00:00	[thread overview]
Message-ID: <wccd78dima3.fsf@world.std.com> (raw)
In-Reply-To: XXaU6.131555$p33.2786953@news1.sttls1.wa.home.com

"Mark Lundquist" <up.yerz@nospam.com> writes:

> 2) Ada has no notion of private vs. public components; either the type is
> private or it isn't.

Right.  If you want both, you can do something like this:

    package P is
        type T_Visible is abstract new ... with
            record
                ... -- visible stuff
            end record;
        type T is new T_Visible with private;
        ...
    private
        type T is new T_Visible with
            record
                ... -- private stuff
            end record;
    end P;

- Bob



  parent reply	other threads:[~2001-06-09 17:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-08 19:56 private properties of tagged records Thomas Nebel
2001-06-08 20:54 ` Mark Lundquist
2001-06-08 21:14   ` Ted Dennison
2001-06-09 17:41   ` Robert A Duff [this message]
2001-06-11 23:08     ` Georg Bauhaus
2001-06-09  7:44 ` Thomas Nebel
replies disabled

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