DIP56 - inlining
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Tue Feb 3 21:20:30 PST 2015
On Tue, 03 Feb 2015 23:37:58 +0000, Justin Whear wrote:
> On Tue, 03 Feb 2015 23:34:15 +0000, an wrote:
>
>> Pragmas can be used as attribute that doesn't affect the semantics.
>> This syntax is not supported in this DIP?
>>
>> pragma(inline, true)
>> {
>> void foo() { }
>> void bar() { }
>> }
>
> I assume it's covered by "If this pragma is outside of a function, it
> affects the functions in the block it encloses."
and so it's completely unusable on module level, as "{}" is not allowed
there. i still can't see what's wrong with `@attribute("inline")`,
`@attribute("force_inline")` and so on. ah, except it breaks one of the
first rules in The Book Of D: "try to escape uniformity whenever it is
possible".
-------------- 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/81275faf/attachment-0001.sig>
More information about the Digitalmars-d
mailing list