DIP56 Provide pragma to control function inlining

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Feb 24 06:46:41 PST 2014


On 2/24/14, 12:55 AM, Walter Bright wrote:
> 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?

Probably it makes no difference, sorry for the distraction.

Andrei



More information about the Digitalmars-d mailing list