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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9983e856ed268154,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.105.38 with SMTP id gj6mr890014wib.0.1344000645881; Fri, 03 Aug 2012 06:30:45 -0700 (PDT) Path: q11ni21890997wiw.1!nntp.google.com!goblin1!goblin.stu.neva.ru!noris.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Fri, 03 Aug 2012 15:30:50 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Should Inline be private in the private part of a package spec? Message-ID: <501bd285$0$6564$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 03 Aug 2012 15:30:45 CEST NNTP-Posting-Host: 2cf3bc23.newsspool4.arcor-online.net X-Trace: DXC=ZFD6b3O06bBC4i^e1BZ=_H4IUK]GbD7bOnc\616M64>JLh>_cHTX3jM3iG15]>]P9A X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: 2012-08-03T15:30:45+02:00 List-Id: The aspect notation of Ada 2012 lets me specify Inline as an aspect giving a pragmatic hint to the compiler. This hint is very near the declaration: package P is procedure Op (X : T) with Inline; end P; Should the readers of a package spec be bothered with hints to the compiler if these hints address optimization, or other aspect of how to implement a subprogram? The hint does not add to an understanding of what an operation is to achieve, IMHO. This understanding is what I'd hope to get from reading a spec. Alternatively, package P is procedure Op (X : T); private pragma Inline (Op); end P; still lets the reader take note of inlining, should they be so inclined. Am I missing something?