From: Preben Randhol <randhol+news@pvv.org>
Subject: When shoul Pragma Inline be used?
Date: Sun, 23 Feb 2003 14:33:08 +0000 (UTC)
Date: 2003-02-23T14:33:08+00:00 [thread overview]
Message-ID: <slrnb5hmr5.5bu.randhol+news@kiuk0152.chembio.ntnu.no> (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
next reply other threads:[~2003-02-23 14:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-23 14:33 Preben Randhol [this message]
2003-02-23 17:26 ` When shoul Pragma Inline be used? 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox