DIP56 Provide pragma to control function inlining

Kapps opantm2+spam at gmail.com
Mon Feb 24 10:00:39 PST 2014


On Monday, 24 February 2014 at 16:58:21 UTC, Manu wrote:
> I agree that inline should be a hint (a STRONG hint, not like 
> 'inline' in
> C, more like __force_inline, perhaps stronger), but I'd like it 
> if I
> received a warning when it failed for whatever reason. I don't 
> want it to
> stop compiling, but a nice notification that I should look into 
> it, and the
> ability to disable/silence the warning if I can't/don't intend 
> to.

Perhaps something like a -vinline similar to -vtls? You don't
need to be spammed repeatedly every time you build saying
something isn't inlined, yet this still gives an easy way of
seeing which methods you requested to be inlined that were not.
The flag would display only functions marked with pragma(inline,
true).


More information about the Digitalmars-d mailing list