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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,555956c1cdd22308 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Help - Constructors - ASAP. Date: 1998/08/01 Message-ID: #1/1 X-Deja-AN: 376895825 Sender: matt@mheaney.ni.net References: <6p75qi$rcj@news.latnet.lv> <6pi4jq$j73$1@nnrp1.dejanews.com> <6pqdr2$hn2$1@nnrp1.dejanews.com> <35C1043E.9FFB23D0@elca-matrix.ch> <6psvnb$vkt$1@nnrp1.dejanews.com> NNTP-Posting-Date: Fri, 31 Jul 1998 22:26:25 PDT Newsgroups: comp.lang.ada Date: 1998-08-01T00:00:00+00:00 List-Id: dewar@merv.cs.nyu.edu (Robert Dewar) writes: > < get back an object of *any* type in the class (as I have just proven > :-) ), when in actuality they always get back the same class of > object. > >> > > That's a pretty fundamental misunderstanding of what classwide > programming is all about. Yes, of course people can have all sorts of > misconceptions, but this one is pretty basic, and not a misconception > that could stay arround very long! I'm with Robert on this one. You have to recognize something as an idiom. When you see a function function New_T return T'Class; you just have to "know" that this is a constructor for T, and for T only. Once you recognize the idiom, you know instantly that type NT is new T with private; ... O : NT := New_T; is wrong, even though the compiler won't tell you it's wrong.