Spec#, nullables and more

"Jérôme M. Berger" jeberger at free.fr
Sat Nov 6 00:47:10 PDT 2010


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:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20101106/611fb1aa/attachment.pgp>


More information about the Digitalmars-d mailing list