DIP56 Provide pragma to control function inlining
Tove
tove at fransson.se
Sun Feb 23 06:19:55 PST 2014
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));
More information about the Digitalmars-d
mailing list