DIP60: @nogc attribute

w0rp via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 16 00:06:41 PDT 2014


On Wednesday, 16 April 2014 at 03:26:24 UTC, Meta wrote:
> This would go fairly well with Andrei's idea of passing true or 
> false to an attribute to enable or disable it.
>
> @gc(false) void fun() {}
>

I don't like this because it's hard to read. It's a bad idea. 
Never use booleans in interfaces like that. @gc and @nogc are 
better.


More information about the Digitalmars-d mailing list