if (X !is null && X.Y !is null) access crash

KnightMare black80 at bk.ru
Fri Jun 7 14:07:34 UTC 2019


On Friday, 7 June 2019 at 09:26:52 UTC, Amex wrote:
> if (X !is null && X.Y !is null) access crash
> is crashing.

imo this code is valid. u can write shorter
if (X && X.Y)
probably crashed in some another place (X is not objRef but 
something else.. some code later at same line.. dunno)


More information about the Digitalmars-d-learn mailing list