comp.lang.ada
 help / color / mirror / Atom feed
From: "Nick Roberts" <Nick.Roberts@dial.pipex.com>
Subject: Re: Renaming entries?
Date: 1999/02/18
Date: 1999-02-18T00:00:00+00:00	[thread overview]
Message-ID: <7ag1dp$lb7$1@plug.news.pipex.net> (raw)
In-Reply-To: os4sokzmo6.fsf@dt022n82.san.rr.com

Well, who designed this stupid language anyway?

;-)

Just to illustrate what David suggests, although you probably are fully
aware, you put

   procedure Fred;

in the package specification, and then

   procedure Fred is
   begin
      Foo.Jim;
   end;

in the package body. This is effectively a kind of 'trampoline' (I think!).
Actually, it might be better termed a 'thunk' (I think!!), especially if it
involves parameters.

David Brown wrote in message ...
|"Nick Roberts" <Nick.Roberts@dial.pipex.com> writes:
|
|
|> So, the solution to your problem is to use
|>
|>    pragma Convention(Entry,Fred);
|
|RM95 6.3.1(14):
|Of these four conventions, only Ada and Intrinsic are allowed as a
|convention_identifier in a pragma Convention, Import, or Export.
|
|My suggestion would be to wrap it in a procedure and then use a pragma
|Inline if you care about the call overhead.  You won't be able to use
|select with this, however.

Embarrassed,

Nick Roberts








  reply	other threads:[~1999-02-18  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-17  0:00 Renaming entries? dennison
1999-02-17  0:00 ` Jean-Pierre Rosen
1999-02-17  0:00 ` Nick Roberts
1999-02-17  0:00   ` David Brown
1999-02-18  0:00     ` Nick Roberts [this message]
1999-02-18  0:00   ` robert_dewar
1999-02-23  0:00 ` Tucker Taft
replies disabled

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