comp.lang.ada
 help / color / mirror / Atom feed
From: hreba <hreba@terra.com.br>
Subject: Re: Serial port configuration
Date: Mon, 07 Apr 2014 08:47:03 -0300
Date: 2014-04-07T08:47:03-03:00	[thread overview]
Message-ID: <bqfhhnF7efvU2@mid.individual.net> (raw)
In-Reply-To: <AAh0v.5570$Ru1.3489@fx02.iad>

On 04/06/2014 04:06 PM, Shark8 wrote:
> On 06-Apr-14 12:57, Simon Wright wrote:
>>> >    overriding procedure Read
>>> >      (--Port   : in out Serial_Port;
>>> >       Port   : in out Port;
>> You can't use the name Port twice like that. I'd suggest using
>> Serial_Port for the type name, like the original (why change?).
>
> You can use the same name as the type if you fully qualify it:
>
> Generic
>    Type Element(<>) is private;
>    Maximum_Size : Positive:=  1024;
> Package Stack_Package is
>    type Stack is private;
>
>    Function Pop( Stack : Stack_Package.Stack ) return Element;
>
> End;

Ok, thanks.

-- 
hreba

  reply	other threads:[~2014-04-07 11:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-06 16:22 Serial port configuration hreba
2014-04-06 18:57 ` Simon Wright
2014-04-06 19:06   ` Shark8
2014-04-07 11:47     ` hreba [this message]
2023-11-04 14:23     ` GNAT.SHA256 differs from Linux' sha256sum wvxvw
2014-04-07 11:44   ` Serial port configuration hreba
replies disabled

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