DIP56 Provide pragma to control function inlining

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Feb 23 04:31:42 PST 2014


On Sunday, 23 February 2014 at 12:07:40 UTC, Walter Bright wrote:
> http://wiki.dlang.org/DIP56
>
> Manu has needed always inlining, and I've needed never 
> inlining. This DIP proposes a simple solution.

What if you want to mark a series of functions to be inlined? 
E.g. in an entire module:

-----
module fast;

// ??
pragma(inline, true):

Vec vecSum();
Vec vecMul();
-----

Seems like a solution would be preferred where this can be used 
for multiple functions. A UDA/@property of some sort.


More information about the Digitalmars-d mailing list