writing efficient struct operators
blevin
brett.levin at gmail.com
Sun Nov 4 16:05:12 PST 2007
Jarrett Billingsley wrote:
> "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.
Aha! Indeed it does -- thank you!
--
Brett.
More information about the Digitalmars-d-learn
mailing list