comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: string literals
Date: 12 Jan 1995 17:21:12 -0500
Date: 1995-01-12T17:21:12-05:00	[thread overview]
Message-ID: <3f4a0o$khv@gnat.cs.nyu.edu> (raw)
In-Reply-To: cary-110195174515@macsac09.esl.com

"but don't want to use [the package with character literals]"

why on earth not? this is what use is for! There is a certain style of
Ada question that goes like:

   How do I do X without using Y

where Y is exactly the feature intended to support X. Most odd!

If you are worried that the use clause would clutter up the name space, a
nice way of doing things is to put the definition of the character type 
into a nested package:

   package Stuff is
      ...
      package Char_Type_Package is
         type Char_Type is ( ....
      end Char_Type_Package;
   end Stuff;

now you can just say use Stuff.Char_Type_Package and you have access to the
literals.




       reply	other threads:[~1995-01-12 22:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cary-110195174515@macsac09.esl.com>
1995-01-12 22:21 ` Robert Dewar [this message]
     [not found]   ` <D2Dnpv.41u@alsys.com>
     [not found]     ` <3fbtgk$501@gnat.cs.nyu.edu>
     [not found]       ` <3fcdf4$65n@uuneo.neosoft.com>
1995-01-16 17:30         ` string literals Robert Dewar
1995-01-18 13:24       ` Richard G. Hash
1995-01-21  5:20         ` Robert Dewar
1995-01-21 13:09         ` Rolf Ebert
1995-01-13 13:31 ` Pascal OBRY
replies disabled

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