[Issue 20925] pragma(inline) should emit code to the calling CU + appropriate linker flags

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 13 04:20:32 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20925

--- Comment #9 from Manu <turkeyman at gmail.com> ---
You're proposing that `pragma(inline, false)` is essentially a request for
force-not-inline though?
That's not the clear meaning.
Not-force-inline, or not logically the same as force-not-inline;
not-force-inline sounds like it may still be subject to the compilers
discretion.

So if,
pragma(inline, true) == absolutely-force-inline
pragma(inline, false) == force-not-inline
... what is the default un-opinionated state? How do we specify the 'hint'
request for a strong preference but not a hard error?

I just don't think the bool is the proper argument here; it should draw from an
enum of possibilities.
Perhaps the complete set is: (default, never, always, preferred [for the strong
hint])

--


More information about the Digitalmars-d-bugs mailing list