V Wed, 30 Dec 2015 03:24:45 +
Ilya via Digitalmars-d-learn
napsáno:
> Hi,
>
> Does `pragma(inline, true)` force DMD compiler to inline function
> when `-inline` was _not_ defined?
>
> I am failing to get a good disassembled code with obj2asm/otool
> :-(
>
>
V Wed, 30 Dec 2015 03:24:45 +
Ilya via Digitalmars-d-learn
napsáno:
> Hi,
>
> Does `pragma(inline, true)` force DMD compiler to inline function
> when `-inline` was _not_ defined?
>
> I am failing to get a good disassembled code with obj2asm/otool
> :-(
>
> Best, Ilya
No
Hi,
Does `pragma(inline, true)` force DMD compiler to inline function
when `-inline` was _not_ defined?
I am failing to get a good disassembled code with obj2asm/otool
:-(
Best, Ilya
Are `foo` and `bar` always inlined?
struct S
{
pragma(inline, true):
void foo(T)(T t) {}
void bar(T)(T t) {}
}
On Saturday, 13 June 2015 at 19:13:20 UTC, Ilya Yaroshenko wrote:
Are `foo` and `bar` always inlined?
struct S
{
pragma(inline, true):
void foo(T)(T t) {}
void bar(T)(T t) {}
}
I am confused becuase they are templates.