From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: gnatmake error I don't understand
Date: Fri, 04 Apr 2014 15:58:05 -0700
Date: 2014-04-04T15:58:05-07:00 [thread overview]
Message-ID: <lhnddt$nke$1@dont-email.me> (raw)
In-Reply-To: <9QE%u.10627$Fj3.8408@fx09.iad>
On 04/04/2014 01:43 PM, Shark8 wrote:
>
> ADS-File
> -----------------------------------------
> Procedure Main;
>
> ADB-File
> -----------------------------------------
> with Parent;
> Procedure Main renames Parent.Subprogram;
>
> GPR-File
> -----------------------------------------
> -- ...
> for Main use ("ADB-File.adb");
> -- ...
>
> Sure the ADS-File may be extraneous, but won't hurt anything to my knowledge.
It might help. There's a little trick some colleagues played on people who left
their workstations unlocked. Let us say Bob is working on a program called Alice
and has the main subprogram in the file Alice.adb:
procedure Alice is ...
end Alice;
He has it to the point that he can run it, though some essential functionality
is missing. We come along and create Foo.ads:
package Foo is
pragma Elaborate_Body;
exception Bar;
end Foo;
Foo.adb:
package body Foo is
-- Nothum, eh?
begin -- Foo
raise Bar;
end Foo;
and Alice.ads:
with Foo;
procedure Alice;
Now when he tests Alice, she raises Foo.Bar! People can spend a lot of time
trying to figure that out.
--
Jeff Carter
"He didn't get that nose from playing ping-pong."
Never Give a Sucker an Even Break
110
next prev parent reply other threads:[~2014-04-04 22:58 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-04 0:35 gnatmake error I don't understand agent
2014-04-04 0:44 ` agent
2014-04-04 4:14 ` Per Sandberg
2014-04-04 7:37 ` Simon Wright
2014-04-04 7:50 ` Simon Wright
2014-04-04 13:35 ` Tero Koskinen
2014-04-04 13:41 ` Robert A Duff
2014-04-04 17:14 ` Simon Wright
2014-04-04 17:45 ` Adam Beneschan
2014-04-05 0:35 ` Robert A Duff
2014-04-05 0:52 ` Adam Beneschan
2014-04-04 21:27 ` Randy Brukardt
2014-04-04 18:48 ` Stephen Leake
2014-04-04 19:25 ` Simon Wright
2014-04-04 20:02 ` drrob106
2014-04-04 20:43 ` Shark8
2014-04-04 22:58 ` Jeffrey Carter [this message]
2014-04-04 20:48 ` Simon Wright
2014-04-05 0:33 ` Robert A Duff
2014-04-05 8:17 ` Georg Bauhaus
2014-04-05 13:28 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox