comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: GtkAda. Printing
Date: Wed, 3 Aug 2016 12:55:25 +0200
Date: 2016-08-03T12:55:25+02:00	[thread overview]
Message-ID: <nnsij4$1ddn$1@gioia.aioe.org> (raw)
In-Reply-To: 57a1c6a7$0$12136$e4fe514c@news.kpn.nl

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

  reply	other threads:[~2016-08-03 10:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-03  7:02 GtkAda. Printing ldries46
2016-08-03  7:39 ` Dmitry A. Kazakov
2016-08-03 10:25   ` ldries46
2016-08-03 10:55     ` Dmitry A. Kazakov [this message]
2016-08-04  5:33       ` ldries46
2016-08-04  7:01         ` Dmitry A. Kazakov
2016-08-04 11:39           ` ldries46
2016-08-04 12:27             ` ldries46
2016-08-05 17:34               ` ldries46
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox