Cannot compare object.opEquals is not nogc

Rufus Smith via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 23 06:18:03 PDT 2016


Trying to compare a *ptr value with a value in nogc code results 
in the error:

Error: @nogc function '...' cannot call non- at nogc function 
'object.opEquals'		

Shouldn't object opEquals be marked?


More information about the Digitalmars-d-learn mailing list