Re: implicit or module-wide @nogc

2018-06-13 Thread Steven Schveighoffer via Digitalmars-d-learn
On 6/13/18 3:24 AM, Mike Franklin wrote: Because D is more evolution then intelligent design, unfortunately. I had to LOL on this, nice :) -Steve

Re: implicit or module-wide @nogc

2018-06-13 Thread Mike Franklin via Digitalmars-d-learn
On Wednesday, 13 June 2018 at 07:19:24 UTC, Gokhhy wrote: Nevermind, it doesn't affect functions inside classes and structs. Yeah, that's kindof unfortunate isn't it. Just do the same thing within the class/struct scope. class C { @nogc: void nogcMethod1() {} void nogcMehtod2()

Re: implicit or module-wide @nogc

2018-06-13 Thread Gokhhy via Digitalmars-d-learn
On Wednesday, 13 June 2018 at 07:14:35 UTC, Gokhhy wrote: On Wednesday, 13 June 2018 at 07:11:56 UTC, Mike Franklin wrote: On Wednesday, 13 June 2018 at 06:45:27 UTC, Gokhhy wrote: Is there a way to define an entire module as @nogc or otherwise make it so I don't have to qualify every single

Re: implicit or module-wide @nogc

2018-06-13 Thread Basile B. via Digitalmars-d-learn
On Wednesday, 13 June 2018 at 06:45:27 UTC, Gokhhy wrote: Is there a way to define an entire module as @nogc or otherwise make it so I don't have to qualify every single function as @nogc? --- module module_wide-nogc; @nogc: /* declarations or statements... */ --- But this is not

Re: implicit or module-wide @nogc

2018-06-13 Thread Mike Franklin via Digitalmars-d-learn
On Wednesday, 13 June 2018 at 06:45:27 UTC, Gokhhy wrote: Is there a way to define an entire module as @nogc or otherwise make it so I don't have to qualify every single function as @nogc? You can put attributes at the top of a module followed by a ":" to have them apply to everything below

Re: implicit or module-wide @nogc

2018-06-13 Thread Gokhhy via Digitalmars-d-learn
On Wednesday, 13 June 2018 at 07:11:56 UTC, Mike Franklin wrote: On Wednesday, 13 June 2018 at 06:45:27 UTC, Gokhhy wrote: Is there a way to define an entire module as @nogc or otherwise make it so I don't have to qualify every single function as @nogc? You can put attributes at the top of a

implicit or module-wide @nogc

2018-06-13 Thread Gokhhy via Digitalmars-d-learn
Is there a way to define an entire module as @nogc or otherwise make it so I don't have to qualify every single function as @nogc?