comp.lang.ada
 help / color / mirror / Atom feed
* When shoul Pragma Inline be used?
@ 2003-02-23 14:33 Preben Randhol
  2003-02-23 17:26 ` Bobby D. Bryant
  2003-02-23 18:07 ` Jeffrey Carter
  0 siblings, 2 replies; 6+ messages in thread
From: Preben Randhol @ 2003-02-23 14:33 UTC (permalink / raw)


Hi

I just wonder when one should use Pragma Inline and when one should not
use it. If somebody could give some tips/links it would be very helpful.

Example:

   package body Settings is

      function Filename
         return String
      is
      begin
         return To_String (Current_File_Settings.File_Name);
      end Filename;

      procedure Set_Filename
         (Name : String)
      is
      begin
         Current_File_Settings.File_Name := To_Unbounded_String (Name);
      end Set_Filename;

   end Settings;

Here is makes sense to add Pragma Inline (Filename); ? But what about
the Set_Filename (Name : String)? Should this also be Inline?

Thanks in advance.
-- 
Preben Randhol ---------------- http://www.pvv.org/~randhol/ --
"Violence is the last refuge of the incompetent", Isaac Asimov



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-02-24  9:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-23 14:33 When shoul Pragma Inline be used? Preben Randhol
2003-02-23 17:26 ` Bobby D. Bryant
2003-02-23 21:05   ` tmoran
2003-02-23 18:07 ` Jeffrey Carter
2003-02-23 22:00   ` Robert A Duff
2003-02-24  9:29   ` Preben Randhol

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