www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - new pragma(inline) syntax

reply "Ilya Yaroshenko" <ilyayaroshenko gmail.com> writes:
Are `foo` and `bar` always inlined?

struct S
{
       pragma(inline, true):

       void foo(T)(T t) {}
       void bar(T)(T t) {}
}
Jun 13 2015
parent "Ilya Yaroshenko" <ilyayaroshenko gmail.com> writes:
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.
Jun 13 2015