On Tuesday, 28 July 2015 at 23:55:00 UTC, Brandon Ragland wrote:
On Tuesday, 28 July 2015 at 21:28:30 UTC, Steven Schveighoffer
wrote:
On 7/28/15 5:24 PM, David Nadlinger wrote:
[…]
pragma(inline);
pragma(inline, true);
pragma(inline, false);
There is no way to represent those as a single boolean.
Ugh. And pragma(inline) doesn't mean what you would think it
means. This is not a very good API for it, it's going to
confuse everyone.
-Steve
I don't think it's terrible confusing, just deceptive.
If pragma(inline) means "attempt to inline just like the
-inline compile time attribute" then it's just an ugly way of
repeating yourself.
Unless I misread the source, it does not mean that at all.
Instead, it leads to the same behavior as if no pragma(inline)
was specified at all, i.e. use the normal heuristics if -inline
is specified, and do not do any inlining otherwise.
— David