On 21 August 2015 at 14:43, Dicebot via Digitalmars-d <
[email protected]> wrote:
> On Friday, 21 August 2015 at 12:41:17 UTC, Steven Schveighoffer wrote:
>
>> 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?
>>
>
> If it is guaranteed, almost makes me want to abuse it for this:
>
> pragma(inline, true)
> string foo()
> {
> if (!__ctfe)
> assert(false);
> // ...
> }
>
> (for compilers other than LDC)
>
That enforces that foo() is always folded at compile time, not always
inlined, no?