Re: Null-Safe Dereference Operator

2017-03-13 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 14 March 2017 at 01:08:50 UTC, Jonathan M Davis wrote: It does not, though if you really wanted to, you could probably create template that did the same thing fairly easily. I recently added something similar to dom.d, since I wanted to pull a header if present, and was ok with a n

Re: Null-Safe Dereference Operator

2017-03-13 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, March 14, 2017 00:51:02 Jolly James via Digitalmars-d-learn wrote: > Does anybody know, if D has a null-safe dereference operator like > C# does (?.) or something similar? It does not, though if you really wanted to, you could probably create template that did the same thing

Null-Safe Dereference Operator

2017-03-13 Thread Jolly James via Digitalmars-d-learn
Does anybody know, if D has a null-safe dereference operator like C# does (?.) or something similar?