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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,45c4e8c210d7ef0d X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.posted.plusnet!news.posted.plusnet.POSTED!not-for-mail NNTP-Posting-Date: Mon, 16 Feb 2009 05:27:50 -0600 Newsgroups: comp.lang.ada Followup-To: comp.lang.ada From: Robert_Matthews Subject: Re: Another problem with "interface" Date: Mon, 16 Feb 2009 11:27:57 +0000 References: <77ad6c6e-0830-4f0d-8a04-84be0fe9504c@33g2000yqm.googlegroups.com> <49994281$0$31336$9b4e6d93@newsspool4.arcor-online.net> User-Agent: KNode/0.99.01 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Message-ID: X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-T6rVLGdJK4YpZsFXY8RO1GDqGW6k0moAuWdL6q/N20jtn+VFA7Gblx25asDhH+yWs4+i71vB3LJdPi+!nrTEp+45qZ5E6UWLbs7rtcgyPvx/9U2wO0NV7Szd3AmlH99LCa4LrA9yC2OYy7LWoU+1iYkKoIhG!NLGM5zFtKQ== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Xref: g2news2.google.com comp.lang.ada:4624 Date: 2009-02-16T11:27:57+00:00 List-Id: Georg Bauhaus wrote: > Uhm, I think that, still, you can call functions > that will assign the (already existing) return > objcect. Which was, IIUC, the point of coining the > word "constructor function". > > X: constant New_A_T := Set_A; > > http://www.adacore.com/2007/05/28/gem-3/ Indeed, that is my intent. Note that if I use an ordinary record type, e.g. type New_A_Type is new A_Type with ... then GNAT compiles things OK; it is when I use a protected type it complains. Robert