Re: Problem with visibility of generic package help please

From: Martin Krischik (krischik_at_users.sourceforge.net)
Date: 12/16/03


Date: Tue, 16 Dec 2003 22:00:57 +0100

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


Relevant Pages

  • Re: Recompiling?
    ... Martin Krischik writes: ... >> use booch on, but that seems so unclean and wasteful. ... package Ide renames Options.Ide; ... package Builder renames Options.Builder; ...
    (comp.lang.ada)
  • Re: variable lenght strings
    ... package S_U renames Ada.Strings.Unbounded; ... smaller values require more recursion. ... -- of buffersize long they will throw and end of file exception. ...
    (comp.lang.ada)
  • Re: Undefined reference to glib_E
    ... package Compiler renames Common.Compiler; ... shared object on UNIX) have unresolved symbols. ...
    (comp.lang.ada)
  • Re: Undefined reference to glib_E
    ... package Linker renames Common.Linker; ... package Compiler renames Common.Compiler; ... You are building a DLL on Windows here. ...
    (comp.lang.ada)
  • Re: URGENT: inserting words into an array
    ... Strings package. ... package Tio renames Ada.Text_IO; ... Words_Last loop ...
    (comp.lang.ada)