From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e169af38f0a27bda,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-23 06:33:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!news.teledanmark.no!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: When shoul Pragma Inline be used? Date: Sun, 23 Feb 2003 14:33:08 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1046010788 29211 129.241.83.78 (23 Feb 2003 14:33:08 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Sun, 23 Feb 2003 14:33:08 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:34473 Date: 2003-02-23T14:33:08+00:00 List-Id: 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