Adding the ?. null verification

Mattcoder via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 18 10:56:44 PDT 2014


On Wednesday, 18 June 2014 at 15:42:04 UTC, Etienne wrote:
> it would be a little more practical to be able to write
>
> writeln(obj.member?.nested?.val);

If one of these: member, nested or val == null, what will happen 
with writeln()? It will print null or it will be avoided?

Matheus.


More information about the Digitalmars-d mailing list