comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <OneWingedShark@gmail.com>
Subject: Re: Serial port configuration
Date: Sun, 06 Apr 2014 13:06:07 -0600
Date: 2014-04-06T13:06:07-06:00	[thread overview]
Message-ID: <AAh0v.5570$Ru1.3489@fx02.iad> (raw)
In-Reply-To: <lyk3b2wakf.fsf@pushface.org>

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;


  reply	other threads:[~2014-04-06 19:06 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 [this message]
2014-04-07 11:47     ` hreba
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