Specifying @nogc on structs seems to have no effect

B4s1L3 B4s1L3 at 12.hu
Wed Sep 20 17:30:29 UTC 2017

On Wednesday, 20 September 2017 at 16:13:44 UTC, Craig Black 
> On Wednesday, 20 September 2017 at 02:43:44 UTC, B4s1L3 wrote:
>> It's another way of doing things. It's less strict than 
>> checking all the functions.
>> note: the script can be run directly by passing the file to 
>> DUB (single file package).
> Wow!  Yeah that seems like almost exactly what I want. Sorry 
> what is iz?  Thank you!
> -Craig

It's a D user library: https://github.com/BBasile/iz.

I forgot to say but the @NoGc data annotation relies on 
construct(). Neither `new` not `std.experimental.allocator.make` 
are usable, because `AddGcRoot()`, when needed, is called inside 
`construct` (which is, if you remove the ability to handle the 
annotation, similar to make).

More information about the Digitalmars-d mailing list