Separate meaning for "inline" and "force inline"

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Wed Nov 20 18:55:21 UTC 2024


On 21/11/2024 7:21 AM, Guillaume Piolat wrote:
> On Wednesday, 20 November 2024 at 17:35:48 UTC, Richard (Rikki) Andrew 
> Cattermole wrote:
>> https://github.com/dlang/dmd/ 
>> blob/3fa3ac85e2feae47703964d6586231d02974c222/compiler/src/dmd/ 
>> hdrgen.d#L1126
>>
>> Which makes sense, you can't inline a function if you don't have the 
>> body.
> 
> Perhaps, still you might want to have to have the body in the .di AND 
> let the compiler decide if it's inlined or not, I'm not sure that's 
> possible right now?

So an attribute to force output of a body, that the .di generator sees?

Okay sure, that would be a good addition.



More information about the dip.ideas mailing list