comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: Gnat Ada 9X - What sort of PC does it need???
Date: 4 Oct 1994 11:07:36 -0400
Date: 1994-10-04T11:07:36-04:00	[thread overview]
Message-ID: <36rr3o$kph@gnat.cs.nyu.edu> (raw)
In-Reply-To: 36qce1$jtb@news.delphi.com

If you are restricted to 8+3 file names (either because you are using DOS,
or using OS/2 on a FAT partition, or -- most aggravating of all if you ask
me -- you insist on using a junk editor that does not handle long file names)

you are not completely stuck
instead you can use the -gnatk8 switch when you compile, which uses a
crunching algorithm to crunch file names down to the 8+3 limit. The
associated gnatk8 utility that is part of the GNAT system can be used
to find the crunched name for a unit (although it is quite a simple
algorithm, see source of krunch.adb, and after a while easy to do in
your head).

Of course this does not guarantee uniqueness, and so you might have to
juggle unit names a bit, but in practice it works pretty well, and you
may well find you don't have any name clashes.

of course the other possibility, suitable for educational use, and actually
a convention we follow in GNAT itself, is simply to keep unit names short.
That's not so terrible:

if you use "use" clauses, then you don't often mention unit names anyway,
only in with clauses, so keeping them short does not have a big readability
effect.

if you don't use "use" clauses, then often people resort to doing local
renamings using abbreviated unit names because they can't stand giant
names before the dots. By keeping unit names short, you can use the real
unit names in qualification, which is often clearer.

Anyway, there are two ways of dealing with the "problem" that are a little
less drastic than repartioning the disk or switching editors.

My personal advice if you are using OS/2: probably worth taking the plunge.
Repartition and setup a big HPFS partition, and learn a new editor (I find
epm very nice, but also consider learning EMACS).




  reply	other threads:[~1994-10-04 15:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-04  1:50 Gnat Ada 9X - What sort of PC does it need??? tmoran
1994-10-04 15:07 ` Robert Dewar [this message]
  -- strict thread matches above, loose matches on Subject: below --
1994-10-05  3:39 tmoran
1994-10-05 11:50 ` Robert Dewar
1994-10-03  7:48 Michael Coburn
1994-10-03 12:06 ` Robert Dewar
1994-10-03 14:08   ` Tom Griest
1994-10-05  8:23     ` Jean-Pierre Rosen
1994-10-03 12:15 ` Robert Dewar
replies disabled

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