DIP56 - inlining

Johannes Pfau via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 4 05:10:22 PST 2015


Am Wed, 04 Feb 2015 12:47:24 +0000
schrieb "Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>:

> On Wednesday, 4 February 2015 at 10:57:25 UTC, Johannes Pfau 
> wrote:
> > That's not necessary. For GDC you can do this:
> >
> > alias forceinline = Attribute!("forceinline");
> > (I don't remember the exact syntax but you can use an alias)
> >
> > Then you can simply do
> > @forceinline void test (){};
> 
> Yes, your attribute syntax is quite ok, but if the outcome is 
> that each program is having their own inline syntax then it is 
> less than satisfactory.

obviously the alias could also be standardized and placed into
gcc.attribute...



More information about the Digitalmars-d mailing list