DIP56 Provide pragma to control function inlining

Walter Bright newshound2 at digitalmars.com
Sun Feb 23 04:53:48 PST 2014


On 2/23/2014 4:31 AM, Andrej Mitrovic wrote:
> 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();
> -----

That can work because pragmas can have blocks associated with them.



More information about the Digitalmars-d mailing list