天天看點

d突破性更改需要有遷移路徑

如下,

T* ptr;
if ((ptr = func()) && ...) { ... }
// 上面為前,下面為後.
T* ptr;
if ((ptr = func()) !is null && ...) { ... } 
// 更可讀了.