comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@spectre.mitre.org (Robert I. Eachus)
Subject: Re: Multiple pragma Imports
Date: 1999/01/07
Date: 1999-01-07T00:00:00+00:00	[thread overview]
Message-ID: <EACHUS.99Jan7115623@spectre.mitre.org> (raw)
In-Reply-To: m3r9t8whzw.fsf@mheaney.ni.net

In article <m3r9t8whzw.fsf@mheaney.ni.net> Matthew Heaney <matthew_heaney@acm.org> writes:

  > I've never liked the fact that one pragma applies to multiple
  > subprograms, for example:

  >   <declare a few "+" functions>
  >   <declare a few "-" functions>
  > private
  >   pragma Inline ("+");
  >   pragma Inline ("-");

  > I'd rather be able to specify each subprogram individually in the
  > pragma.

  If you need to do this, the way to do it is to rename the operations
you want inlined in the private part, then apply inline to the renamed
versions.  That this is possible is not obvious from the RM, that is
would be nice if it were more elegant is agreed.  (You often can order
the declarations so that the pragma is in the middle, and only applies
to those above it, but this doesn't work if you want the pragma in the
private part.)

--

					Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...




      parent reply	other threads:[~1999-01-07  0:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-26  0:00 Multiple pragma Imports dewar
1998-12-27  0:00 ` Jerry van Dijk
1998-12-27  0:00   ` Larry Kilgallen
1998-12-27  0:00     ` Tom Moran
1998-12-28  0:00       ` dewar
1998-12-27  0:00     ` Jerry van Dijk
1998-12-28  0:00       ` dewar
1998-12-28  0:00         ` Jerry van Dijk
1998-12-28  0:00   ` dewar
1998-12-28  0:00 ` Tom Moran
1999-01-06  0:00 ` Matthew Heaney
1999-01-07  0:00   ` dewar
1999-01-07  0:00   ` Robert I. Eachus [this message]
replies disabled

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