<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 21 August 2015 at 14:43, Dicebot 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 Friday, 21 August 2015 at 12:41:17 UTC, Steven Schveighoffer wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have no idea. It probably should be guaranteed, because what is the point of having an "always inlined" function that generates it's own code?<br>
</blockquote>
<br></span>
If it is guaranteed, almost makes me want to abuse it for this:<br>
<br>
pragma(inline, true)<br>
string foo()<br>
{<br>
if (!__ctfe)<br>
assert(false);<br>
// ...<br>
}<br>
<br>
(for compilers other than LDC)<br>
</blockquote></div><br></div><div class="gmail_extra">That enforces that foo() is always folded at compile time, not always inlined, no?<br></div></div>