DIP56 Provide pragma to control function inlining

Meta jared771 at gmail.com
Sun Feb 23 17:34:49 PST 2014


On Monday, 24 February 2014 at 01:12:56 UTC, Andrei Alexandrescu 
wrote:
> This makes inlining dependent on previously-seen code. Would 
> that make parallel compilation more difficult?
>
> I've always thought the obvious/simple way would be an 
> attribute such as @forceinline and @noinline that applies to 
> individual functions.
>
>
> Andrei

That seems to be how Rust does it, but I'm not really clear how 
attributes work in Rust.

http://static.rust-lang.org/doc/master/rust.html#inline-attributes


More information about the Digitalmars-d mailing list