:end to terminate attribute:

ZombineDev via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 28 02:50:06 PDT 2016


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 the gc here
>
> class Base(bool overridableImpl)
> {
>    final:
>
>
>    final(overridableImpl) void impl() { /* ... */
> }
>
> But still no one has stepped in to do the implementation.

I meant:
class Base(bool overridableImpl)
{
    final:
    /* final methods here */

    final(!overridableImpl) void impl() { /* ... */ }

    /* final methods here */
}


More information about the Digitalmars-d mailing list