comp.lang.ada
 help / color / mirror / Atom feed
From: visicom!amstel!rlk@nosc.mil  (Bob Kitzberger)
Subject: Re: Weird Exception Problem
Date: 18 Sep 92 17:05:20 GMT	[thread overview]
Message-ID: <rlk.716835920@amstel> (raw)

matwood%cascades.utah.edu@cs.utah.edu (Mark Atwood) writes:

>Also, if an exception is raised in a "library unit" the program will
>abort.  Once again, I couldn't figure out what a "library unit" is.

Library units are similar to C's 'file scope'.  If you declare a unit
(package, subprogram, etc.) and it is NOT nested within another 
unit. then it is a library unit.

e.g. the following file:

	  package library_unit is
	    procedure not_library_unit;
	    package also_not_library_unit is
	      procedure very_much_not_library_unit;
	    end...
	  end library_unit;

	  procedure library_unit_too;

Personally, I try to only have packages as library units.  Declaring
subprograms at the 'library unit' level pollutes the namespace.

	.Bob.
----------------
Bob Kitzberger          VisiCom Laboratories, Inc.
rlk@visicom.com         10052 Mesa Ridge Court, San Diego CA 92121 USA
                        +1 619 457 2111    FAX +1 619 457 0888

             reply	other threads:[~1992-09-18 17:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-09-18 17:05 Bob Kitzberger [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-09-18  9:16 Weird Exception Problem Leif Euren
1992-09-18  1:38 dog.ee.lbl.gov!hellgate.utah.edu!cascades.utah.edu!matwood
replies disabled

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