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".
signature.asc
Description: PGP signature