https://issues.dlang.org/show_bug.cgi?id=15110
Iain Buclaw changed:
What|Removed |Added
Priority|P1 |P4
--
https://issues.dlang.org/show_bug.cgi?id=15110
--- Comment #11 from Manu ---
(In reply to Walter Bright from comment #10)
> Manu, I thought you had argued strongly to me that if the inlining fails an
> error should be generated.
True, but I also think I understand a little more nuance now than
https://issues.dlang.org/show_bug.cgi?id=15110
Walter Bright changed:
What|Removed |Added
CC||bugzi...@digitalmars.com
--- Comment #10
https://issues.dlang.org/show_bug.cgi?id=15110
--- Comment #9 from Manu ---
** error even
--
https://issues.dlang.org/show_bug.cgi?id=15110
--- Comment #8 from Manu ---
Right. I think `pragma(inline, true)` should express an AST inline in the
front-end, and fail whenever such inlining can't occur.
--
https://issues.dlang.org/show_bug.cgi?id=15110
Mike Franklin changed:
What|Removed |Added
CC||slavo5...@yahoo.com
--- Comment #7 from
https://issues.dlang.org/show_bug.cgi?id=15110
--- Comment #6 from Manu ---
There are cases where it should be valid to fail inlining, but shouldn't be an
error.
For instance, if I take the address of the function, that kinda implies it
needs to emit an instance of the
https://issues.dlang.org/show_bug.cgi?id=15110
Iain Buclaw changed:
What|Removed |Added
CC||ibuc...@gdcproject.org
https://issues.dlang.org/show_bug.cgi?id=15110
yebblies changed:
What|Removed |Added
CC||yebbl...@gmail.com
---
https://issues.dlang.org/show_bug.cgi?id=15110
--- Comment #4 from Manu ---
Well, firstly, it should inline.
Secondly, it should never be an error if it's impossible to inline (it should
be a warning).
Ie, exactly like __forceinline in C++.
Also, it would be nice if it
https://issues.dlang.org/show_bug.cgi?id=15110
David Nadlinger changed:
What|Removed |Added
CC||c...@klickverbot.at
https://issues.dlang.org/show_bug.cgi?id=15110
--- Comment #2 from Manu ---
Okay. I've encountered this sort of problem a lot, it might all be the same
problem though, this isn't exactly an uncommon pattern.
--
12 matches
Mail list logo