What does 'inline' mean?
Walter Bright
newshound2 at digitalmars.com
Sat Jun 13 19:54:33 UTC 2020
On 6/13/2020 4:31 AM, Johannes Pfau wrote:
> BTW: If you do dmd -c a.di you get no object file output. So .di files
> are treated differently
Yeah, you're right. Only in one spot, however, the .obj file is omitted. You can
always rename it to .d
> I think it's interesting that DMD seems to emit some (all?) normal
> functions as weak.
It emits them all as COMDATs. This is so multiple definitions can be combined.
> So basically all that's missing for Manu's inline case would be to emit
> pragma(inlne) functions from non-root modules. Probably a 1-line change.
It's simply unnecessary for what Manu wants to achieve (header only libraries).
More information about the Digitalmars-d
mailing list