[Issue 15110] pragma(inline) rarely works how I want it to
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Sep 30 00:08:41 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=15110
Iain Buclaw <ibuclaw at gdcproject.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ibuclaw at gdcproject.org
--- Comment #5 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Manu from comment #4)
> Well, firstly, it should inline.
> Secondly, it should never be an error if it's impossible to inline (it
> should be a warning).
>
I disagree on point 2 here (it rightly should be an error). But then again we
are talking about a behaviour that can't be regulated with our current choice
of compiler technologies. So you'll have to accept that each will do it's own
independent thing here.
> Ie, exactly like __forceinline in C++.
>
There is no __forceinline in C++. :-)
--
More information about the Digitalmars-d-bugs
mailing list