Re: :end to terminate attribute:

2016-09-28 Thread Seb via Digitalmars-d
On Wednesday, 28 September 2016 at 10:14:25 UTC, Mike Parker wrote: Yeah, that's what I couldn't remember. I'll dig up the discussion read up on it again. These two DIPs drafts also try to tackle the attribute problem: http://wiki.dlang.org/DIP64 http://wiki.dlang.org/DIP79

Re: :end to terminate attribute:

2016-09-28 Thread Andrei Alexandrescu via Digitalmars-d
On 9/28/16 11:48 AM, ZombineDev wrote: AFAIR, last year or so, Andrei approved the proposal for attr(bool expr), eg: @nogc: // no gc code here @nogc(false): Yah, we've got to have something. There's been quibbles over syntax but nothing better came up that is as comprehensive. @nogc(true)

Re: :end to terminate attribute:

2016-09-28 Thread Mike Parker via Digitalmars-d
On Wednesday, 28 September 2016 at 09:48:27 UTC, ZombineDev wrote: AFAIR, last year or so, Andrei approved the proposal for attr(bool expr), eg: Yeah, that's what I couldn't remember. I'll dig up the discussion read up on it again.

Re: :end to terminate attribute:

2016-09-28 Thread ZombineDev via Digitalmars-d
On Wednesday, 28 September 2016 at 09:48:27 UTC, ZombineDev wrote: On Wednesday, 28 September 2016 at 09:43:38 UTC, Mike Parker wrote: [...] AFAIR, last year or so, Andrei approved the proposal for attr(bool expr), eg: @nogc: // no gc code here @nogc(false): // code that's allowed to use

Re: :end to terminate attribute:

2016-09-28 Thread ZombineDev via Digitalmars-d
On Wednesday, 28 September 2016 at 09:43:38 UTC, Mike Parker wrote: Let's try this again. This attribute block can be terminated by a corresponding protection attribute block: // Begin private private: void foo() {} // End private public: void bar() {} But not all attributes have a cor

Re: :end to terminate attribute:

2016-09-28 Thread Mike Parker via Digitalmars-d
Let's try this again. This attribute block can be terminated by a corresponding protection attribute block: // Begin private private: void foo() {} // End private public: void bar() {} But not all attributes have a corresponding attribute to turn them off: // Begin @nogc @nogc: ...

:end to terminate attribute:

2016-09-28 Thread Mike Parker via Digitalmars-d
Given public: