From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e01befd2b86cac20 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: "Rick Santa-Cruz" Newsgroups: comp.lang.ada Subject: Re: problems with classes Date: Fri, 1 Oct 2004 20:41:50 +0200 Organization: T-Online Message-ID: References: <1c2igmxqnybiz.50giqp9woi08$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 1096656129 03 7956 xmVPXeSlnre9U+A 041001 18:42:09 X-Complaints-To: usenet-abuse@t-online.de X-ID: JrcQC6ZGgeBF59EtBY5XlrTCeSl4m4aUJ0SF0VNu8fo0GLXNFArr8g X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Xref: g2news1.google.com comp.lang.ada:4529 Date: 2004-10-01T20:41:50+02:00 List-Id: 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