<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 29 July 2015 at 20:34, David Nadlinger via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tuesday, 28 July 2015 at 23:55:00 UTC, Brandon Ragland wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On Tuesday, 28 July 2015 at 21:28:30 UTC, Steven Schveighoffer wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On 7/28/15 5:24 PM, David Nadlinger wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[…]<span class=""><br>
<br>
pragma(inline);<br>
pragma(inline, true);<br>
pragma(inline, false);<br>
<br>
There is no way to represent those as a single boolean.<br>
</span></blockquote><span class="">
<br>
Ugh. And pragma(inline) doesn't mean what you would think it means. This is not a very good API for it, it's going to confuse everyone.<br>
<br>
-Steve<br>
</span></blockquote><span class="">
<br>
I don't think it's terrible confusing, just deceptive.<br>
<br>
If pragma(inline) means "attempt to inline just like the -inline compile time attribute" then it's just an ugly way of repeating yourself.<br>
</span></blockquote>
<br>
Unless I misread the source, it does not mean that at all. Instead, it leads to the same behavior as if no pragma(inline) was specified at all, i.e. use the normal heuristics if -inline is specified, and do not do any inlining otherwise.<br>
<br>
— David<br>
<br>
</blockquote></div><br></div><div class="gmail_extra">Of course, team sanity will do something different... Won't we? :o)<br><br></div><div class="gmail_extra">Well, for me it seems more obvious to let the GCC backend warn against any functions that were marked pragma(inline) by the user, but will never be inlined for one reason or another.<br><br></div><div class="gmail_extra">Regards<br></div><div class="gmail_extra">Iain<br></div><div class="gmail_extra"><br></div></div>