From: "Martin Dowie" <martin.dowie@baesystems.com>
Subject: Re: problems with classes
Date: Mon, 4 Oct 2004 11:19:42 +0100
Date: 2004-10-04T11:19:42+01:00 [thread overview]
Message-ID: <4161224e$1_1@baen1673807.greenlnk.net> (raw)
In-Reply-To: 1gnik0tlsc3av.1i85f33sd3tkx$.dlg@40tude.net
Dmitry A. Kazakov wrote:
> You cannot complete X in the private part, because you have promised
> that X will be completed in the public part. So either:
>
> package Foo is -- LEGAL
> ...
> private
> type X; -- Incomplete declaration
> type X is range 1..20; -- Type completion and full view
>
> or
>
> package Foo is -- LEGAL
> type X; -- Incomplete declaration
> type X is range 1..20; -- Type completion and full view
> private
> ...
And don't forget...
package Foo is
private
type X; -- Incomplete declaration; an "opaque type"
end Foo;
package body Foo is
type X is range 1 .. 20; -- No public view
...
end Foo;
next prev parent reply other threads:[~2004-10-04 10:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-30 21:20 problems with classes Rick Santa-Cruz
2004-10-01 7:35 ` Dmitry A. Kazakov
2004-10-01 18:41 ` Rick Santa-Cruz
2004-10-04 8:33 ` Dmitry A. Kazakov
2004-10-04 10:19 ` Martin Dowie [this message]
2004-10-01 7:58 ` Martin Krischik
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox