DIP56 Provide pragma to control function inlining

Walter Bright newshound2 at digitalmars.com
Mon Feb 24 00:55:32 PST 2014


On 2/23/2014 8:18 PM, Andrei Alexandrescu wrote:
> On 2/23/14, 6:12 PM, Walter Bright wrote:
>> On 2/23/2014 5:12 PM, Andrei Alexandrescu wrote:
>>> This makes inlining dependent on previously-seen code. Would that make
>>> parallel
>>> compilation more difficult?
>>
>> I don't understand the question. Inlining always depends on the compiler
>> having seen the function body.
>
> Decision to inline at line 2000 may be caused by a pragma in line 2.

I still don't understand the question. Successfully compiling anything in D can 
have dependencies on arbitrary other parts of the code. Why would inlining be 
any different, or be a special problem?



More information about the Digitalmars-d mailing list