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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: GtkAda. Printing Date: Wed, 3 Aug 2016 12:55:25 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <57a1973c$0$12033$e4fe514c@news.kpn.nl> <57a1c6a7$0$12136$e4fe514c@news.kpn.nl> NNTP-Posting-Host: xelDFTENDI+dlkJFd2Ot2w.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:31267 Date: 2016-08-03T12:55:25+02:00 List-Id: On 2016-08-03 12:25, ldries46 wrote: > Yes Print is declared as Gtkada_Print_Operation; and still in the Call > to routine Set_N_Pages(Print_Op, 1); the compiler does not find an error > while the declaration is > > procedure Set_N_Pages > (Self : not null access Gtk_Print_Operation_Record; > N_Pages : Gint); > > and > > type Gtkada_Print_Operation_Record is new > Gtk_Print_Operation_Record with private; > type Gtkada_Print_Operation is access all Gtkada_Print_Operation_Record; > > I expect that in the compiler to react the same in simular cases. > Therefore I think that the error in lines 190:30 is the real error and > the one I asked about. That depends on whether the operation is primitive or type specific. A primitive operation is inherited. Draw_Page parameter types are access Gtk_Print_Operation_Record'Class; not null access Gtk_Context_Record'Class; Gint not Gtk_Print_Operation_Record; Gtk_Print_Context; Gint -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de