comp.lang.ada
 help / color / mirror / Atom feed
From: hreba <hreba@terra.com.br>
Subject: Re: Pass a serial port as user data in a GTK callback handler?
Date: Sun, 16 Feb 2014 13:14:48 -0300
Date: 2014-02-16T13:14:48-03:00	[thread overview]
Message-ID: <bmc2vaF6kpiU1@mid.individual.net> (raw)
In-Reply-To: <bmb8k0F13aiU1@mid.individual.net>

On 02/16/2014 04:45 AM, Niklas Holsti wrote:

> Give the type a name so that it isn't "anonymous":
>
>     type Port_Ref is access all GNAT.Serial_Communications.Serial_Port;
>
>     port : Port_Ref;
>
> Also remember to mark the actual Serial_Port object as "aliased" so that
> you can take its 'Access.

It is the first time I stumbled about anonymous types. Looked it up in 
my Ada book (it is in one of the last chapters). Thanks for the 
clarification.
-- 
Frank Hrebabetzky		+55 / 48 / 3235 1106
Florianopolis, Brazil

  reply	other threads:[~2014-02-16 16:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-15 23:32 Pass a serial port as user data in a GTK callback handler? hreba
2014-02-16  0:35 ` Jeffrey Carter
2014-02-16 16:18   ` hreba
2014-02-16  7:45 ` Niklas Holsti
2014-02-16 16:14   ` hreba [this message]
2014-02-16  9:20 ` Dmitry A. Kazakov
2014-02-16 16:57   ` hreba
2014-02-16 18:02     ` Dmitry A. Kazakov
2014-02-17 16:13 ` adambeneschan
2014-02-17 16:20   ` adambeneschan
2014-02-17 21:31     ` Robert A Duff
2014-02-19  0:53       ` Randy Brukardt
2014-02-19 22:22         ` Robert A Duff
2014-02-20  0:34           ` Randy Brukardt
2014-02-20 11:07             ` Simon Wright
2014-02-20 16:11             ` Robert A Duff
replies disabled

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