comp.lang.ada
 help / color / mirror / Atom feed
From: emery@mitre-bedford.arpa  (David Emery)
Subject: Re: Ada name space (was: Re: good software engineering)
Date: 7 Jun 93 15:34:13 GMT	[thread overview]
Message-ID: <EMERY.93Jun7103413@goldfinger.mitre.org> (raw)

A "trick" that I saw in the old AIE code was to define a standard
abbreviation for long package names:

	package LONG_AND_VERBOSE_DESCRIPTIVE_NAME is
    	  -- abbreviation: LVD_NAME
	...
	end LONG_AND_VERBOSE_DESCRIPTIVE_NAME;

then the abbreviation is used in a renames clause:

	with LONG_AND_VERBOSE_DESCRIPTIVE_NAME;
	procedure USER is
	   package LVD_NAME renames LONG_AND_VERBOSE_DESCRIPTIVE_NAME;
	...
	end USER;

The "bonus" from this system was that the filename was the same as the
abbreviation, so you'd have something like:

	lvd_name.spec
	lvd_name.body

So the abbreviations were 'standard' and people came to know and love
them, while the original long/descriptive names were still preserved,
and of course if you forgot what LVD_NAME is short for, you just have
to search for the renames clause.

				dave

             reply	other threads:[~1993-06-07 15:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-06-07 15:34 David Emery [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-06-03 16:11 Ada name space (was: Re: good software engineering) dog.ee.lbl.gov!overload.lbl.gov!agate!howland.reston.ans.net!noc.near.net
1993-06-03 12:05 agate!howland.reston.ans.net!europa.eng.gtefsd.com!fs7.ece.cmu.edu!news.s
1993-06-02 18:12 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