DIP56 Provide pragma to control function inlining

Iain Buclaw ibuclaw at gdcproject.org
Sun Feb 23 06:22:08 PST 2014


On 23 February 2014 14:19, Tove <tove at fransson.se> wrote:
> On Sunday, 23 February 2014 at 12:57:00 UTC, Walter Bright wrote:
>>
>> On 2/23/2014 4:25 AM, Tove wrote:
>>>
>>> The DIP should probably specify what happens if inlining fails,
>>> i.e. generate a compilation error.
>>
>>
>> I suspect that may cause problems, because different compilers will have
>> different inlining capabilities. I think it should be a 'recommendation' to
>> the compiler.
>
>
> Would assert be feasible or difficult to implement with the current compiler
> design?
>
> static assert(pragma(inline, true));

WAT!


More information about the Digitalmars-d mailing list