comp.lang.ada
 help / color / mirror / Atom feed
From: "Rick Santa-Cruz" <rick_santa_cruz75@msn.com>
Subject: Re: problems with classes
Date: Fri, 1 Oct 2004 20:41:50 +0200
Date: 2004-10-01T20:41:50+02:00	[thread overview]
Message-ID: <cjk8e1$7ok$03$1@news.t-online.com> (raw)
In-Reply-To: 1c2igmxqnybiz.50giqp9woi08$.dlg@40tude.net

Hi,

>
>> If this would be C++, I think I would know the answer... so in C++
>> "something like this" exists, too. It is called pre-definition of a type.
>> That means that, for example if I need the name of a type before I wanna
>> specify it, I can just write:
>> class MyType; and specify it later. Is this the case in Ada too?
>
> Close, but not quite. In your example you define the public view of a type
> and later define its implementation. What you meant is a forward type
> declaration, it looks exactly like in C++:
Yes forward declaration ;).

But if "type Child_Class is new Parent_Class with private;" is not a forward 
declaration then what is it then, or what is the sense of this soruce-line?

Thanks,
Rick 





  reply	other threads:[~2004-10-01 18:41 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 [this message]
2004-10-04  8:33     ` Dmitry A. Kazakov
2004-10-04 10:19       ` Martin Dowie
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