Pelle Månsson wrote: > On 11/05/2010 08:30 PM, bearophile wrote: >> Denis Koroskin: >> >>> Is anyone FORCING you to use non-nullable references? >>> What's the big deal? >> >> If non-nullables are introduced in D3, then Phobos will start to use >> them. So probably you can't avoid using some of them. >> >> Bye, >> bearophile > > If we're still following the 'calls to phobos considered external > input'-thing, the nulls still have to be checked. So, no loss there, > performance wise.
Actually, you have a *gain* performance-wise since Phobos can drop the checks and use a non-nullable type, which means that there will be no check if the compiler can determine that you are passing a non-null pointer statically... Jerome -- mailto:jeber...@free.fr http://jeberger.free.fr Jabber: jeber...@jabber.fr
signature.asc
Description: OpenPGP digital signature