DIP56 Provide pragma to control function inlining

Brad Roberts braddr at puremagic.com
Sun Feb 23 17:45:08 PST 2014


On 2/23/14, 5:05 PM, Walter Bright wrote:
> On 2/23/2014 4:21 PM, Tove wrote:
>> Inspecting asm output doesn't scale well to huge projects. Imagine simply
>> updating the existing codebase to use a new compiler version.
>
> Again, this is treating 'inline' as being the only optimization that
> matters? It's not even the most important - that would likely be
> register allocation.
>
> At some point, you're going to need to trust the compiler.

At this point, you're starting to argue that the entire DIP isn't 
relevant.  I agree with the majority that if you're going to have the 
directive, then it needs to be enforcement, not suggestion.


More information about the Digitalmars-d mailing list