writing efficient struct operators

Jarrett Billingsley kb3ctd2 at yahoo.com
Sun Nov 4 15:21:19 PST 2007


"blevin" <brett.levin at gmail.com> wrote in message 
news:fglb8v$2tr4$1 at digitalmars.com...
>I noticed that dmd generates implicit checks for a NULL "this" argument in 
>overloaded struct operators.  Assuming my operator does not modify its 
>arguments, including "this", is there a way to avoid that cost?
>

This is a debug check and disappears with the -release flag. 




More information about the Digitalmars-d-learn mailing list