Does the spec take priority over the compiler?
Neia Neutuladh
neia at ikeran.org
Mon Dec 17 00:08:53 UTC 2018
On Sun, 16 Dec 2018 16:32:50 -0500, Steven Schveighoffer wrote:
> On 12/16/18 2:42 PM, Neia Neutuladh wrote:
>> 1. Move your aggregates above the `@nogc nothrow pure:` line
>> 2. Move your aggregates outside the `@nogc nothrow pure {}` block
>> 3. Mark functions `@nogc nothrow pure` individually
>
> None of those are good options.
I mean, yes, they're not super awesome. But it's also not like this is
some unthinkably horrific thing that we're forced to use curly braces or
reorder declarations sometimes -- we've been dealing with this with
functions for years.
Unless there's some widespread tip running around to put a function inside
a struct to reset @nogc and friends?
More information about the Digitalmars-d
mailing list