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,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.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 03:53:52 -0600 Newsgroups: comp.lang.ada Followup-To: comp.lang.ada From: Robert_Matthews Subject: Another problem with "interface" Date: Mon, 16 Feb 2009 09:53:59 +0000 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-vi2jaWZMmxr8lfEBBbBv8IOUBo9mJwyeKvlZpxZ6tr3EayFZUkbi8SHQ/+CAbqECHp/83kmm6kxl3VJ!QAaYiviiFSELdZNdrt3bW1AIsshEZWK0FCEbzhM/JLtxxgHYuyg9lCS2/bt4jkh/xwJNmxEQPqco!pYu8TQtIOA== 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: g2news1.google.com comp.lang.ada:3650 Date: 2009-02-16T09:53:59+00:00 List-Id: In using interface types with GNAT I have encountered another problem. Consider the following package: package Test is type A_Type is limited interface; procedure P (A : in out A_Type; D : Integer) is abstract; protected type New_A_Type is new A_Type with procedure P (D : Integer); -- other subprograms... private F : Integer; end New_A_Type; function Set_A return New_A_Type; end Test; GNAT gives an error for the function Set_A: "operation can be dispatching in only one type", which leaves me mystified. Am I making another dumb mistake? Please help! The version of GNAT is GNAT GPL 2008 (20080521). Thanks in advance, Robert