Null references

Regan Heath regan at netmail.co.nz
Tue Aug 21 07:31:52 PDT 2012


On Tue, 21 Aug 2012 15:08:23 +0100, Carl Sturtivant <sturtivant at gmail.com>  
wrote:

>>> On the other hand, the suggested syntax of  
>>> "bob?.department?.head?.name" from Kotlin is pure genius, and has a
>>> good chance of actually being used.
>>  Absolutely. Probably hard to include in D though, as a ? .b is the  
>> beginning of a conditional expression.
>
> How about
>
>    bob??.department??.head??.name

Hmm.. c# has another nice use for ??
http://msdn.microsoft.com/en-us/library/ms173224.aspx

R

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the Digitalmars-d mailing list