comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Problem with visibility of generic package help please
Date: Tue, 16 Dec 2003 22:00:57 +0100
Date: 2003-12-16T22:00:57+01:00	[thread overview]
Message-ID: <1233485.RdhKAtxz5h@linux1.krischik.com> (raw)
In-Reply-To: br9tct$10g5t$1@ID-209803.news.uni-berlin.de

Ute wrote:

> hello,
> 
> 
> with Ada.Text_IO; use Ada.Text_IO;
> 
> with Ada.Float_Text_IO; use Ada.Float_Text_IO;
> 
> with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
> 
> with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
> 
> with generic_sort;

Hind for readability: don't "use" as much. it is better to rename:

package F_IO renames Ada.Float_Text_IO;
package I_IO renames Ada.Integer_Text_IO;
package IO renames Ada.Text_IO;

That way you can see where which comand comes from. Also you avoid name
clashes.

With Regards

Martin
 
-- 
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com




  parent reply	other threads:[~2003-12-16 21:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-11 14:03 Problem with visibility of generic package help please Ute
2003-12-11 15:15 ` Georg Bauhaus
2003-12-11 18:07 ` Jeffrey Carter
2003-12-16 21:00 ` Martin Krischik [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-12-11 14:37 amado.alves
2003-12-11 15:55 ada_wizard
replies disabled

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