Debug prints in @nogc

Yuxuan Shui via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 31 09:17:51 PDT 2016


On Wednesday, 31 August 2016 at 15:52:18 UTC, Cauterite wrote:
> On Wednesday, 31 August 2016 at 15:10:11 UTC, Seb wrote:
>> AssumeNogc is potentially dangerous, so I don't know whether 
>> it can make it directly, but only if you try you know ;-)
>
> So is assumeUnique

No. When you use assumeUnique, you know something the compiler 
does know, and have to use assumeUnique to tell the compiler that 
(at least when you use it correctly). But when you use 
assumeNogc, it's always because you want to bypass compiler 
checks.


More information about the Digitalmars-d-learn mailing list