force_inline etc.

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Mon Feb 2 07:16:19 PST 2015


Can we just have this:

pragma(inline) means "inline it unless you literally can't make 
it work".

pragma(force_inline) or pragma(always_inline) means "the same as 
pragma(inline), but stop compilation if it can't be inlined".

in the absence of either of these, "inline as you please".


A pragma is OK. It will get the job done. People need something 
to get the job done. If Walter really doesn't like the attribute 
route then give his taste the benefit of the doubt and let's move 
on.


More information about the Digitalmars-d mailing list