DIP56 - inlining

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Tue Feb 3 21:17:11 PST 2015


On Tue, 03 Feb 2015 22:47:30 +0000, Orvid King wrote:

> On Tuesday, 3 February 2015 at 22:30:22 UTC, Walter Bright wrote:
>> http://wiki.dlang.org/DIP56
>>
>> There's been enough discussion, time to make a decision and move on.
>>
>> I changed the description to:
>>
>> "If a pragma specifies always inline, and the compiler cannot inline
>> it, a warning will be generated. Implementations will likely vary in
>> their ability to inline."
> 
> I just created a proposal for a more general syntax to allow user's to
> apply attributes like inlining in a way that can easily be supported
> across compilers, and, in my eyes, is clearer about what code the
> attribute is applied to than a pragma is.
> 
> http://wiki.dlang.org/DIP72

gcc using `@attribute("name")` for this. it's easier and requires no 
compiler hacks to ignore.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150204/5c22e0fa/attachment.sig>


More information about the Digitalmars-d mailing list