@gc attribute for bypassign @nogc

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Mon Jul 25 19:49:59 PDT 2016


On Tuesday, 26 July 2016 at 02:42:52 UTC, bitwise wrote:
> Something like @warngc could work nicely. It could function 
> exactly as @nogc with the exception that it issued warnings 
> instead of errors.

i don't think that it will be added, though. but you can emulate 
it with external utility: either with dscanner (writing your own 
linter), or with "-vgc" and then using simple regexp to find in 
which function the reported line is in. somewhat messy, but it is 
the way to get the work done without waiting for new attr. ;-)


More information about the Digitalmars-d mailing list